aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock2xxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/clock2xxx.c')
-rw-r--r--arch/arm/mach-omap2/clock2xxx.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/arm/mach-omap2/clock2xxx.c b/arch/arm/mach-omap2/clock2xxx.c
index 5feee16fee0e..1ff646908627 100644
--- a/arch/arm/mach-omap2/clock2xxx.c
+++ b/arch/arm/mach-omap2/clock2xxx.c
@@ -28,27 +28,12 @@
28#include "cm.h" 28#include "cm.h"
29#include "cm-regbits-24xx.h" 29#include "cm-regbits-24xx.h"
30 30
31struct clk *vclk, *sclk, *dclk; 31struct clk_hw *dclk_hw;
32
33/* 32/*
34 * Omap24xx specific clock functions 33 * Omap24xx specific clock functions
35 */ 34 */
36 35
37/* 36/*
38 * Set clocks for bypass mode for reboot to work.
39 */
40void omap2xxx_clk_prepare_for_reboot(void)
41{
42 u32 rate;
43
44 if (vclk == NULL || sclk == NULL)
45 return;
46
47 rate = clk_get_rate(sclk);
48 clk_set_rate(vclk, rate);
49}
50
51/*
52 * 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
53 * 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
54 * 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.