Commit 59b24313 authored by Tony Lindgren's avatar Tony Lindgren

ARM: OMAP: Clean up omap2 reboot now that cpu_v6_proc_fin is added

Clean up omap2 reboot now that cpu_v6_proc_fin is added
parent 2ab8c553
...@@ -41,18 +41,12 @@ static inline void omap2_arch_reset(char mode) ...@@ -41,18 +41,12 @@ static inline void omap2_arch_reset(char mode)
{ {
u32 rate; u32 rate;
struct clk *vclk, *sclk; struct clk *vclk, *sclk;
unsigned long flags;
vclk = clk_get(NULL, "virt_prcm_set"); vclk = clk_get(NULL, "virt_prcm_set");
sclk = clk_get(NULL, "sys_ck"); sclk = clk_get(NULL, "sys_ck");
printk(KERN_INFO "Resetting the OMAP2\n");
local_irq_save(flags); /* no distractions, we are rebooting */
rate = clk_get_rate(sclk); rate = clk_get_rate(sclk);
clk_set_rate(vclk, rate); /* go to bypass for OMAP limitation */ clk_set_rate(vclk, rate); /* go to bypass for OMAP limitation */
RM_RSTCTRL_WKUP |= 2; RM_RSTCTRL_WKUP |= 2;
local_irq_restore(flags);
} }
static inline void arch_reset(char mode) static inline void arch_reset(char mode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment