]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/pxa/cpu.c
PXA: Rework start.S to be closer to other ARMs
[karo-tx-uboot.git] / arch / arm / cpu / pxa / cpu.c
index df351c7fbcfb3518fd6c311280031fd130ea1316..c48b2ef2c7d08e3433bd4cb3de53fe9b90362082 100644 (file)
@@ -328,3 +328,19 @@ void i2c_clk_enable(void)
        writel(readl(CKEN) | CKEN14_I2C, CKEN);
 #endif
 }
+
+void reset_cpu(ulong ignored) __attribute__((noreturn));
+
+void reset_cpu(ulong ignored)
+{
+       uint32_t tmp;
+
+       setbits_le32(OWER, OWER_WME);
+
+       tmp = readl(OSCR);
+       tmp += 0x1000;
+       writel(tmp, OSMR3);
+
+       for (;;)
+               ;
+}