]> git.sur5r.net Git - u-boot/commitdiff
OMAP5: reset: Use cold reset in case of 5430ES1.0
authorSRICHARAN R <r.sricharan@ti.com>
Mon, 12 Mar 2012 02:25:52 +0000 (02:25 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 15 May 2012 06:31:25 +0000 (08:31 +0200)
Warm reset is not functional in case of omap5430ES1.0.
So override the weak reset_cpu function to use
cold reset instead.

Signed-off-by: R Sricharan <r.sricharan@ti.com>
arch/arm/cpu/armv7/omap5/hwinit.c

index 7da7075e1d7c5780e924a98476ebfd94f25c9569..d01cc81333ba62c6b35e38959fbdfe10229cc4e4 100644 (file)
@@ -160,3 +160,17 @@ void init_omap_revision(void)
                *omap_si_rev = OMAP5430_SILICON_ID_INVALID;
        }
 }
+
+void reset_cpu(ulong ignored)
+{
+       u32 omap_rev = omap_revision();
+
+       /*
+        * WARM reset is not functional in case of OMAP5430 ES1.0 soc.
+        * So use cold reset in case instead.
+        */
+       if (omap_rev == OMAP5430_ES1_0)
+               writel(PRM_RSTCTRL_RESET << 0x1, PRM_RSTCTRL);
+       else
+               writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL);
+}