summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAneesh Bansal <aneesh.bansal@freescale.com>2014-03-11 23:21:45 +0530
committerYork Sun <yorksun@freescale.com>2014-04-22 17:58:46 -0700
commit7efb4b51975409fb922e9f9bfec21a7affb6f83f (patch)
treec17238ada9e9d0cfdeb0d43b408afde20034d3e7
parent50c7636764f819ce9e0264f4b950d4829e8d10ed (diff)
downloadu-boot-imx-7efb4b51975409fb922e9f9bfec21a7affb6f83f.zip
u-boot-imx-7efb4b51975409fb922e9f9bfec21a7affb6f83f.tar.gz
u-boot-imx-7efb4b51975409fb922e9f9bfec21a7affb6f83f.tar.bz2
powerpc/mpc8xxx: SECURE BOOT- Disable law 0 for non PBL platforms
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> Reviewed-by: York Sun <yorksun@freescale.com>
-rw-r--r--arch/powerpc/cpu/mpc8xxx/law.c10
1 files changed, 10 insertions, 0 deletions
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.