public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH][v2] powerpc/mpc8xxx: SECURE BOOT- Disable law 0 for non PBL platforms
@ 2014-03-11 17:51 Aneesh Bansal
  2014-04-23 22:27 ` York Sun
  0 siblings, 1 reply; 2+ messages in thread
From: Aneesh Bansal @ 2014-03-11 17:51 UTC (permalink / raw)
  To: u-boot

ISBC creates a LAW 0 entry for non PBL platforms, which is not
disabled before transferring the control to uboot.
The LAW 0 entry has to be disabled.

Signed-off-by: Aneesh Bansal <aneesh.bansal@freescale.com>
---
 arch/powerpc/cpu/mpc8xxx/law.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

Changes from v1:
The LAW was being disabled in start.S in v1. As per discussion, it is 
moved out of start.S and done when U-boot initializes other LAW's.

diff --git a/arch/powerpc/cpu/mpc8xxx/law.c b/arch/powerpc/cpu/mpc8xxx/law.c
index a401083..55ee125 100644
--- a/arch/powerpc/cpu/mpc8xxx/law.c
+++ b/arch/powerpc/cpu/mpc8xxx/law.c
@@ -233,6 +233,16 @@ void init_laws(void)
 #error FSL_HW_NUM_LAWS can not be greater than 32 w/o code changes
 #endif
 
+#if defined(CONFIG_SECURE_BOOT) && defined(CONFIG_E500) && \
+						!defined(CONFIG_E500MC)
+	/* ISBC (Boot ROM) creates a LAW 0 entry for non PBL platforms,
+	 * which is not disabled before transferring the control to uboot.
+	 * Disable the LAW 0 entry here.
+	 */
+	disable_law(0);
+#endif
+
+
 	/*
 	 * Any LAWs that were set up before we booted assume they are meant to
 	 * be around and mark them used.
-- 
1.8.1.4

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

* [U-Boot] [PATCH][v2] powerpc/mpc8xxx: SECURE BOOT- Disable law 0 for non PBL platforms
  2014-03-11 17:51 [U-Boot] [PATCH][v2] powerpc/mpc8xxx: SECURE BOOT- Disable law 0 for non PBL platforms Aneesh Bansal
@ 2014-04-23 22:27 ` York Sun
  0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2014-04-23 22:27 UTC (permalink / raw)
  To: u-boot

On 03/11/2014 10:51 AM, Aneesh Bansal wrote:
> ISBC creates a LAW 0 entry for non PBL platforms, which is not
> disabled before transferring the control to uboot.
> The LAW 0 entry has to be disabled.
> 
> Signed-off-by: Aneesh Bansal <aneesh.bansal@freescale.com>
> ---

Applied to u-boot-mpc85xx/master, thanks.

York

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

end of thread, other threads:[~2014-04-23 22:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-11 17:51 [U-Boot] [PATCH][v2] powerpc/mpc8xxx: SECURE BOOT- Disable law 0 for non PBL platforms Aneesh Bansal
2014-04-23 22:27 ` York Sun

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