armv8/ls2085a: Add support for reset request
authorpankaj chauhan <pankaj.chauhan@freescale.com>
Sat, 21 Mar 2015 02:28:09 +0000 (19:28 -0700)
committerYork Sun <yorksun@freescale.com>
Thu, 23 Apr 2015 15:55:55 +0000 (08:55 -0700)
Add support for reset_cpu() by asserting RESET_REQ_B.

Signed-off-by: pankaj chauhan <pankaj.chauhan@freescale.com>
Signed-off-by: York Sun <yorksun@freescale.com>
arch/arm/cpu/armv8/fsl-lsch3/cpu.c
board/freescale/ls2085a/ls2085a.c

index e985181e8b9f1cd7c7f0cf1ed15fb5c7a77dc67c..0e5aa5ca9506f0a6b7bb762701ec7f12bef435e0 100644 (file)
@@ -419,3 +419,14 @@ int timer_init(void)
 
        return 0;
 }
+
+void reset_cpu(ulong addr)
+{
+       u32 __iomem *rstcr = (u32 *)CONFIG_SYS_FSL_RST_ADDR;
+       u32 val;
+
+       /* Raise RESET_REQ_B */
+       val = in_le32(rstcr);
+       val |= 0x02;
+       out_le32(rstcr, val);
+}
index bd016e90b131f7be2b26713ae6c3a625c2e9c6e8..19f5a7b92ea4a846ef338e21810126f0556f31f2 100644 (file)
@@ -55,13 +55,6 @@ int dram_init(void)
        return 0;
 }
 
-/*
- * Board specific reset that is system reset.
- */
-void reset_cpu(ulong addr)
-{
-}
-
 #if defined(CONFIG_ARCH_MISC_INIT)
 int arch_misc_init(void)
 {