Commit d49d3660 authored by Choraria, Rohit's avatar Choraria, Rohit Committed by Tony Lindgren

ARM: OMAP: Warm reset functionality for 34xx

This patch adds the implementation for warm reset functionality for OMAP3.
Signed-off-by: default avatarRohit Choraria <rohitkc@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 0efec0ca
......@@ -33,6 +33,13 @@ void omap_prcm_arch_reset(char mode)
{
u32 wkup;
omap2_clk_prepare_for_reboot();
if (cpu_is_omap24xx()) {
wkup = prm_read_mod_reg(WKUP_MOD, RM_RSTCTRL) | OMAP_RST_DPLL3;
prm_write_mod_reg(wkup, WKUP_MOD, RM_RSTCTRL);
} else if (cpu_is_omap34xx()) {
wkup = prm_read_mod_reg(OMAP3430_GR_MOD, RM_RSTCTRL)
| OMAP_RST_DPLL3;
prm_write_mod_reg(wkup, OMAP3430_GR_MOD, RM_RSTCTRL);
}
}
......@@ -40,7 +40,7 @@ static inline void omap1_arch_reset(char mode)
static inline void arch_reset(char mode)
{
if (!cpu_is_omap24xx())
if (!cpu_class_is_omap2())
omap1_arch_reset(mode);
else
omap_prcm_arch_reset(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