aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm.h
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2010-12-09 10:13:46 -0500
committerKevin Hilman <khilman@deeprootsystems.com>2010-12-21 17:30:40 -0500
commitfd1478cd61624479c89e35602925459d74505ff3 (patch)
tree32b0a0f75e0b8ec47200b2f227924f3a37490873 /arch/arm/mach-omap2/pm.h
parent4584acc3ee236424b5d0b52f143d980cae3c2be5 (diff)
omap: opp: add OMAP3 OPP table data and common init
Add OPP data for OMAP34xx and OMAP36xx and initialization functions to populate OPP tables based on current SoC. introduce an OMAP generic opp initialization routine which OMAP3 and OMAP4+ SoCs can use to register their OPP definitions. Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com> Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm.h')
-rw-r--r--arch/arm/mach-omap2/pm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h
index 0d75bfd1fdbe..2031f157a6ee 100644
--- a/arch/arm/mach-omap2/pm.h
+++ b/arch/arm/mach-omap2/pm.h
@@ -20,6 +20,15 @@ extern int omap3_can_sleep(void);
20extern int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state); 20extern int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state);
21extern int omap3_idle_init(void); 21extern int omap3_idle_init(void);
22 22
23#if defined(CONFIG_PM_OPP)
24extern int omap3_opp_init(void);
25#else
26static inline int omap3_opp_init(void)
27{
28 return -EINVAL;
29}
30#endif
31
23struct cpuidle_params { 32struct cpuidle_params {
24 u8 valid; 33 u8 valid;
25 u32 sleep_latency; 34 u32 sleep_latency;