~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to arch/arm/mach-omap2/dvfs.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * OMAP3/OMAP4 DVFS Management Routines
 
3
 *
 
4
 * Author: Vishwanath BS        <vishwanath.bs@ti.com>
 
5
 *
 
6
 * Copyright (C) 2011 Texas Instruments, Inc.
 
7
 * Vishwanath BS <vishwanath.bs@ti.com>
 
8
 *
 
9
 * This program is free software; you can redistribute it and/or modify
 
10
 * it under the terms of the GNU General Public License version 2 as
 
11
 * published by the Free Software Foundation.
 
12
 */
 
13
 
 
14
#ifndef __ARCH_ARM_MACH_OMAP2_DVFS_H
 
15
#define __ARCH_ARM_MACH_OMAP2_DVFS_H
 
16
#include <plat/omap_hwmod.h>
 
17
#include "voltage.h"
 
18
 
 
19
#ifdef CONFIG_PM
 
20
int omap_dvfs_register_device(struct device *dev, char *voltdm_name,
 
21
                char *clk_name);
 
22
int omap_device_scale(struct device *req_dev, struct device *target_dev,
 
23
                unsigned long rate);
 
24
#else
 
25
static inline int omap_dvfs_register_device(struct omap_hwmod *oh,
 
26
                struct device *dev)
 
27
static inline int omap_dvfs_register_device(struct device *dev,
 
28
                char *voltdm_name, char *clk_name)
 
29
{
 
30
        return -EINVAL;
 
31
}
 
32
static inline int omap_device_scale(struct device *req_dev,
 
33
                struct device *target_dev, unsigned long rate)
 
34
{
 
35
        return -EINVAL;
 
36
}
 
37
#endif
 
38
#endif