]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Warm reset functionality for 34xx
authorChoraria, Rohit <rohitkc@ti.com>
Thu, 15 Nov 2007 21:27:03 +0000 (13:27 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 15 Nov 2007 21:27:03 +0000 (13:27 -0800)
This patch adds the implementation for warm reset functionality for OMAP3.

Signed-off-by: Rohit Choraria <rohitkc@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/prcm.c
include/asm-arm/arch-omap/system.h

index 9af88488edeef240c0ddbd49a5a2bb622f714b36..9857ba7039dbad5cd0769bcded860c4ab2350cb9 100644 (file)
@@ -33,6 +33,13 @@ void omap_prcm_arch_reset(char mode)
 {
        u32 wkup;
        omap2_clk_prepare_for_reboot();
-       wkup = prm_read_mod_reg(WKUP_MOD, RM_RSTCTRL) | OMAP_RST_DPLL3;
-       prm_write_mod_reg(wkup, WKUP_MOD, RM_RSTCTRL);
+
+       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);
+       }
 }
index ac2bfa433f06e9c160ccd404f98849f272e648d8..5bdac693fdd698f9c25af179d3deed2184019400 100644 (file)
@@ -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);