public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm: sleep: Get the entry point of kernel from SPARE4 register
@ 2016-04-05 10:01 Alison Wang
  2016-04-05 16:56 ` York Sun
  2016-04-05 22:20 ` [U-Boot] [u-boot] " Scott Wood
  0 siblings, 2 replies; 7+ messages in thread
From: Alison Wang @ 2016-04-05 10:01 UTC (permalink / raw)
  To: u-boot

For LS1021A Secure Boot, SPARE2 register is used and modified by the
IBR. To avoid the conflict, SPARE4 is used instead of SPARE2 to store
the entry point of kernel. This patch is to get the entry point of
kernel from SPARE4 instead of SPARE2.

Signed-off-by: Alison Wang <alison.wang@nxp.com>
---
 board/freescale/common/arm_sleep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/freescale/common/arm_sleep.c b/board/freescale/common/arm_sleep.c
index 71ed15e..6d967f0 100644
--- a/board/freescale/common/arm_sleep.c
+++ b/board/freescale/common/arm_sleep.c
@@ -88,7 +88,7 @@ int fsl_dp_resume(void)
 	dp_resume_prepare();
 
 	/* Get the entry address and jump to kernel */
-	start_addr = in_le32(&scfg->sparecr[1]);
+	start_addr = in_le32(&scfg->sparecr[3]);
 	debug("Entry address is 0x%08x\n", start_addr);
 	kernel_resume = (void (*)(void))start_addr;
 	secure_ram_addr(_do_nonsec_entry)(kernel_resume, 0, 0, 0);
-- 
2.1.0.27.g96db324

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-07 16:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-05 10:01 [U-Boot] [PATCH] arm: sleep: Get the entry point of kernel from SPARE4 register Alison Wang
2016-04-05 16:56 ` York Sun
2016-04-05 22:20 ` [U-Boot] [u-boot] " Scott Wood
2016-04-06  2:16   ` Huan Wang
2016-04-06 19:46     ` Scott Wood
2016-04-07  9:11       ` Huan Wang
2016-04-07 16:08         ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox