diff options
author | Tero Kristo <t-kristo@ti.com> | 2012-09-25 16:33:39 (GMT) |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2012-11-05 23:12:40 (GMT) |
commit | 908b75e850c4a6130b680ea7e59b00f80d4cd2d2 (patch) | |
tree | 8b9480fc931af48286bb8a5fdd1a6cd4c9d54b7b /arch/arm/mach-omap2/pm.h | |
parent | 9a1729cbaaf1a9d1fd27f80cd488ef182fe033a0 (diff) | |
download | linux-fsl-qoriq-908b75e850c4a6130b680ea7e59b00f80d4cd2d2.tar.xz |
ARM: OMAP: add support for oscillator setup
This contains startup and shutdown times for the oscillator. By default
use ULONG_MAX. Oscillator setup is used for calculating and setting up
latencies for sleep modes that disable oscillator.
Based on a patch from Nishanth Menon <nm@ti.com>.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm.h')
-rw-r--r-- | arch/arm/mach-omap2/pm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h index 67d6613..4290288 100644 --- a/arch/arm/mach-omap2/pm.h +++ b/arch/arm/mach-omap2/pm.h @@ -129,4 +129,12 @@ static inline int omap4_twl_init(void) } #endif +#ifdef CONFIG_PM +extern void omap_pm_setup_oscillator(u32 tstart, u32 tshut); +extern void omap_pm_get_oscillator(u32 *tstart, u32 *tshut); +#else +static inline void omap_pm_setup_oscillator(u32 tstart, u32 tshut) { } +static inline void omap_pm_get_oscillator(u32 *tstart, u32 *tshut) { } +#endif + #endif |