diff options
author | Tony Lindgren <tony@atomide.com> | 2010-12-21 20:05:57 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-12-21 20:05:57 -0500 |
commit | b9e7683bbca638967a56e5d7fd4035a947109621 (patch) | |
tree | 3d02725c6e6bb3d77e1c34a04d5179ea4ee2509e /arch/arm/plat-omap/include | |
parent | bb3613aa34a81a5e2f1227ccdb801fde04a7da10 (diff) | |
parent | 53da4ce23809ca33405001b0ae117e60b7feced1 (diff) |
Merge branch 'pm-opp' of ssh://master.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm into omap-for-linus
Diffstat (limited to 'arch/arm/plat-omap/include')
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap-pm.h | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap-pm.h b/arch/arm/plat-omap/include/plat/omap-pm.h index 728fbb9dd549..62c3fe918ab2 100644 --- a/arch/arm/plat-omap/include/plat/omap-pm.h +++ b/arch/arm/plat-omap/include/plat/omap-pm.h | |||
@@ -17,27 +17,10 @@ | |||
17 | #include <linux/device.h> | 17 | #include <linux/device.h> |
18 | #include <linux/cpufreq.h> | 18 | #include <linux/cpufreq.h> |
19 | #include <linux/clk.h> | 19 | #include <linux/clk.h> |
20 | #include <linux/opp.h> | ||
20 | 21 | ||
21 | #include "powerdomain.h" | 22 | #include "powerdomain.h" |
22 | 23 | ||
23 | /** | ||
24 | * struct omap_opp - clock frequency-to-OPP ID table for DSP, MPU | ||
25 | * @rate: target clock rate | ||
26 | * @opp_id: OPP ID | ||
27 | * @min_vdd: minimum VDD1 voltage (in millivolts) for this OPP | ||
28 | * | ||
29 | * Operating performance point data. Can vary by OMAP chip and board. | ||
30 | */ | ||
31 | struct omap_opp { | ||
32 | unsigned long rate; | ||
33 | u8 opp_id; | ||
34 | u16 min_vdd; | ||
35 | }; | ||
36 | |||
37 | extern struct omap_opp *mpu_opps; | ||
38 | extern struct omap_opp *dsp_opps; | ||
39 | extern struct omap_opp *l3_opps; | ||
40 | |||
41 | /* | 24 | /* |
42 | * agent_id values for use with omap_pm_set_min_bus_tput(): | 25 | * agent_id values for use with omap_pm_set_min_bus_tput(): |
43 | * | 26 | * |
@@ -59,9 +42,11 @@ extern struct omap_opp *l3_opps; | |||
59 | * framework starts. The "_if_" is to avoid name collisions with the | 42 | * framework starts. The "_if_" is to avoid name collisions with the |
60 | * PM idle-loop code. | 43 | * PM idle-loop code. |
61 | */ | 44 | */ |
62 | int __init omap_pm_if_early_init(struct omap_opp *mpu_opp_table, | 45 | #ifdef CONFIG_OMAP_PM_NONE |
63 | struct omap_opp *dsp_opp_table, | 46 | #define omap_pm_if_early_init() 0 |
64 | struct omap_opp *l3_opp_table); | 47 | #else |
48 | int __init omap_pm_if_early_init(void); | ||
49 | #endif | ||
65 | 50 | ||
66 | /** | 51 | /** |
67 | * omap_pm_if_init - OMAP PM init code called after clock fw init | 52 | * omap_pm_if_init - OMAP PM init code called after clock fw init |
@@ -69,7 +54,11 @@ int __init omap_pm_if_early_init(struct omap_opp *mpu_opp_table, | |||
69 | * The main initialization code. OPP tables are passed in here. The | 54 | * The main initialization code. OPP tables are passed in here. The |
70 | * "_if_" is to avoid name collisions with the PM idle-loop code. | 55 | * "_if_" is to avoid name collisions with the PM idle-loop code. |
71 | */ | 56 | */ |
57 | #ifdef CONFIG_OMAP_PM_NONE | ||
58 | #define omap_pm_if_init() 0 | ||
59 | #else | ||
72 | int __init omap_pm_if_init(void); | 60 | int __init omap_pm_if_init(void); |
61 | #endif | ||
73 | 62 | ||
74 | /** | 63 | /** |
75 | * omap_pm_if_exit - OMAP PM exit code | 64 | * omap_pm_if_exit - OMAP PM exit code |