diff options
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 331478f9b864..e5a4c3a0accd 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c | |||
@@ -40,6 +40,36 @@ static struct omap_device_pm_latency *pm_lats; | |||
40 | */ | 40 | */ |
41 | int (*omap_pm_suspend)(void); | 41 | int (*omap_pm_suspend)(void); |
42 | 42 | ||
43 | /** | ||
44 | * struct omap2_oscillator - Describe the board main oscillator latencies | ||
45 | * @startup_time: oscillator startup latency | ||
46 | * @shutdown_time: oscillator shutdown latency | ||
47 | */ | ||
48 | struct omap2_oscillator { | ||
49 | u32 startup_time; | ||
50 | u32 shutdown_time; | ||
51 | }; | ||
52 | |||
53 | static struct omap2_oscillator oscillator = { | ||
54 | .startup_time = ULONG_MAX, | ||
55 | .shutdown_time = ULONG_MAX, | ||
56 | }; | ||
57 | |||
58 | void omap_pm_setup_oscillator(u32 tstart, u32 tshut) | ||
59 | { | ||
60 | oscillator.startup_time = tstart; | ||
61 | oscillator.shutdown_time = tshut; | ||
62 | } | ||
63 | |||
64 | void omap_pm_get_oscillator(u32 *tstart, u32 *tshut) | ||
65 | { | ||
66 | if (!tstart || !tshut) | ||
67 | return; | ||
68 | |||
69 | *tstart = oscillator.startup_time; | ||
70 | *tshut = oscillator.shutdown_time; | ||
71 | } | ||
72 | |||
43 | static int __init _init_omap_device(char *name) | 73 | static int __init _init_omap_device(char *name) |
44 | { | 74 | { |
45 | struct omap_hwmod *oh; | 75 | struct omap_hwmod *oh; |