From 05d2e21be5e48185cf81389d12b1b8d0eceeae83 Mon Sep 17 00:00:00 2001 From: pankaj chauhan Date: Fri, 20 Mar 2015 19:28:09 -0700 Subject: [PATCH] armv8/ls2085a: Add support for reset request Add support for reset_cpu() by asserting RESET_REQ_B. Signed-off-by: pankaj chauhan Signed-off-by: York Sun --- arch/arm/cpu/armv8/fsl-lsch3/cpu.c | 11 +++++++++++ board/freescale/ls2085a/ls2085a.c | 7 ------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/arch/arm/cpu/armv8/fsl-lsch3/cpu.c b/arch/arm/cpu/armv8/fsl-lsch3/cpu.c index e985181e8b..0e5aa5ca95 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); +} diff --git a/board/freescale/ls2085a/ls2085a.c b/board/freescale/ls2085a/ls2085a.c index bd016e90b1..19f5a7b92e 100644 --- a/board/freescale/ls2085a/ls2085a.c +++ b/board/freescale/ls2085a/ls2085a.c @@ -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) { -- 2.25.1