diff options
Diffstat (limited to 'arch/arm/mach-omap2/clock2xxx.c')
-rw-r--r-- | arch/arm/mach-omap2/clock2xxx.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/arch/arm/mach-omap2/clock2xxx.c b/arch/arm/mach-omap2/clock2xxx.c index e92be1fc1a00..1ff646908627 100644 --- a/arch/arm/mach-omap2/clock2xxx.c +++ b/arch/arm/mach-omap2/clock2xxx.c | |||
@@ -22,35 +22,18 @@ | |||
22 | #include <linux/clk.h> | 22 | #include <linux/clk.h> |
23 | #include <linux/io.h> | 23 | #include <linux/io.h> |
24 | 24 | ||
25 | #include <plat/clock.h> | ||
26 | |||
27 | #include "soc.h" | 25 | #include "soc.h" |
28 | #include "clock.h" | 26 | #include "clock.h" |
29 | #include "clock2xxx.h" | 27 | #include "clock2xxx.h" |
30 | #include "cm.h" | 28 | #include "cm.h" |
31 | #include "cm-regbits-24xx.h" | 29 | #include "cm-regbits-24xx.h" |
32 | 30 | ||
33 | struct clk *vclk, *sclk, *dclk; | 31 | struct clk_hw *dclk_hw; |
34 | |||
35 | /* | 32 | /* |
36 | * Omap24xx specific clock functions | 33 | * Omap24xx specific clock functions |
37 | */ | 34 | */ |
38 | 35 | ||
39 | /* | 36 | /* |
40 | * Set clocks for bypass mode for reboot to work. | ||
41 | */ | ||
42 | void omap2xxx_clk_prepare_for_reboot(void) | ||
43 | { | ||
44 | u32 rate; | ||
45 | |||
46 | if (vclk == NULL || sclk == NULL) | ||
47 | return; | ||
48 | |||
49 | rate = clk_get_rate(sclk); | ||
50 | clk_set_rate(vclk, rate); | ||
51 | } | ||
52 | |||
53 | /* | ||
54 | * Switch the MPU rate if specified on cmdline. We cannot do this | 37 | * Switch the MPU rate if specified on cmdline. We cannot do this |
55 | * early until cmdline is parsed. XXX This should be removed from the | 38 | * early until cmdline is parsed. XXX This should be removed from the |
56 | * clock code and handled by the OPP layer code in the near future. | 39 | * clock code and handled by the OPP layer code in the near future. |