summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv8
diff options
context:
space:
mode:
authorpankaj chauhan <pankaj.chauhan@freescale.com>2015-03-20 19:28:09 -0700
committerYork Sun <yorksun@freescale.com>2015-04-23 08:55:55 -0700
commit05d2e21be5e48185cf81389d12b1b8d0eceeae83 (patch)
treed383d41cd8fa16b3b33c53cf720844f5bab9478d /arch/arm/cpu/armv8
parent207774b213caa3c72ebd6c9f6d1e4a3a666938b7 (diff)
downloadu-boot-imx-05d2e21be5e48185cf81389d12b1b8d0eceeae83.zip
u-boot-imx-05d2e21be5e48185cf81389d12b1b8d0eceeae83.tar.gz
u-boot-imx-05d2e21be5e48185cf81389d12b1b8d0eceeae83.tar.bz2
armv8/ls2085a: Add support for reset request
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>
Diffstat (limited to 'arch/arm/cpu/armv8')
-rw-r--r--arch/arm/cpu/armv8/fsl-lsch3/cpu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/fsl-lsch3/cpu.c b/arch/arm/cpu/armv8/fsl-lsch3/cpu.c
index e985181..0e5aa5c 100644
--- a/arch/arm/cpu/armv8/fsl-lsch3/cpu.c
+++ b/arch/arm/cpu/armv8/fsl-lsch3/cpu.c
@@ -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);
+}