powerpc/mpc85xx: SECURE BOOT- Enable chain of trust in SPL
authorSumit Garg <sumit.garg@nxp.com>
Thu, 14 Jul 2016 16:27:51 +0000 (12:27 -0400)
committerYork Sun <york.sun@nxp.com>
Thu, 21 Jul 2016 18:09:23 +0000 (11:09 -0700)
commit8f01397ba76d1ee210bedbf031d807e8df34c482
tree5c25955aa0d03c186a5c7eace132c590c9b6c877
parent63865278dae47ad19527d9f9b6e0dad6cb01f401
powerpc/mpc85xx: SECURE BOOT- Enable chain of trust in SPL

As part of Chain of Trust for Secure boot, the SPL U-Boot will validate
the next level U-boot image. Add a new function spl_validate_uboot to
perform the validation.

Enable hardware crypto operations in SPL using SEC block.
In case of Secure Boot, PAMU is not bypassed. For allowing SEC block
access to CPC configured as SRAM, configure PAMU.

Reviewed-by: Ruchika Gupta <ruchika.gupta@nxp.com>
Signed-off-by: Aneesh Bansal <aneesh.bansal@nxp.com>
Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
arch/powerpc/cpu/mpc8xxx/pamu_table.c
arch/powerpc/include/asm/fsl_secure_boot.h
board/freescale/common/fsl_chain_of_trust.c
drivers/crypto/fsl/jr.c
drivers/mtd/nand/fsl_ifc_spl.c
include/fsl_validate.h