Skip to content
Snippets Groups Projects
Commit 7efb4b51 authored by Aneesh Bansal's avatar Aneesh Bansal Committed by York Sun
Browse files

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: default avatarAneesh Bansal <aneesh.bansal@freescale.com>
Reviewed-by: default avatarYork Sun <yorksun@freescale.com>
parent 50c76367
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment