diff options
author | Tony Lindgren <tony@atomide.com> | 2012-11-06 17:06:37 -0800 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-11-06 17:06:37 -0800 |
commit | 46bf4a562207c5ebd24e1dde5e5ee326cd3d6b91 (patch) | |
tree | d44b14736a46cd0d4270460fd6590a6d07c40730 /arch/arm/mach-omap2/pm.c | |
parent | b197adabbd2f71c966b4bd89cca5a54a2def03e2 (diff) | |
parent | df7cded30ced539d3b4e6bae9f3011d98c069d41 (diff) | |
download | linux-46bf4a562207c5ebd24e1dde5e5ee326cd3d6b91.tar.gz |
Merge tag 'for_3.8-pm-voltage' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm into omap-for-v3.8/pm
OMAP voltage layer updates towards supporting auto-retention/auto-off
Diffstat (limited to 'arch/arm/mach-omap2/pm.c')
-rw-r--r-- | arch/arm/mach-omap2/pm.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index ea61c32957bd..109a02e02d72 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -39,6 +39,36 @@ static struct omap_device_pm_latency *pm_lats; */ int (*omap_pm_suspend)(void); +/** + * struct omap2_oscillator - Describe the board main oscillator latencies + * @startup_time: oscillator startup latency + * @shutdown_time: oscillator shutdown latency + */ +struct omap2_oscillator { + u32 startup_time; + u32 shutdown_time; +}; + +static struct omap2_oscillator oscillator = { + .startup_time = ULONG_MAX, + .shutdown_time = ULONG_MAX, +}; + +void omap_pm_setup_oscillator(u32 tstart, u32 tshut) +{ + oscillator.startup_time = tstart; + oscillator.shutdown_time = tshut; +} + +void omap_pm_get_oscillator(u32 *tstart, u32 *tshut) +{ + if (!tstart || !tshut) + return; + + *tstart = oscillator.startup_time; + *tshut = oscillator.shutdown_time; +} + static int __init _init_omap_device(char *name) { struct omap_hwmod *oh; |