]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv7/omap5/hwinit.c
Unified codebase for TX28, TX48, TX51, TX53
[karo-tx-uboot.git] / 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);
+}