u-boot-brain/arch/powerpc/cpu
Sumit Garg aa36c84edf powerpc/mpc85xx: T104x: Add nand secure boot target
For mpc85xx SoCs, the core begins execution from address 0xFFFFFFFC.
In non-secure boot scenario from NAND, this address will map to CPC
configured as SRAM. But in case of secure boot, this default address
always maps to IBR (Internal Boot ROM).
The IBR code requires that the bootloader(U-boot) must lie in 0 to 3.5G
address space i.e. 0x0 - 0xDFFFFFFF.

For secure boot target from NAND, the text base for SPL is kept same as
non-secure boot target i.e. 0xFFFx_xxxx but the SPL U-boot binary will
be copied to CPC configured as SRAM with address in 0-3.5G(0xBFFC_0000)
As a the virtual and physical address of CPC would be different. The
virtual address 0xFFFx_xxxx needs to be mapped to physical address
0xBFFx_xxxx.

Create a new PBI file to configure CPC as SRAM with address 0xBFFC0000
and update DCFG SCRTACH1 register with location of Header required for
secure boot.

The changes are similar to
commit 467a40dfe3
    powerpc/mpc85xx: SECURE BOOT- NAND secure boot target for P3041

While P3041 has a 1MB CPC and does not require SPL. On T104x, CPC
is only 256K and thus SPL framework is used.
The changes are only applicable for SPL U-Boot running out of CPC SRAM
and not the next level U-Boot loaded on DDR.

Reviewed-by: Ruchika Gupta <ruchika.gupta@nxp.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Aneesh Bansal <aneesh.bansal@nxp.com>
Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
2016-07-21 11:09:34 -07:00
..
mpc5xx powerpc: Finish updating u-boot*lds scripts for newer binutils 2015-11-10 09:20:29 -05:00
mpc5xxx Delete tests of CONFIG_OF_LIBFDT when testing CONFIG_OF_BOARD_SETUP 2016-05-27 15:41:16 -04:00
mpc8xx arch/powerpc: Simplify some calculations using ARRAY_SIZE() macro. 2016-06-03 22:13:12 -07:00
mpc8xxx powerpc/mpc85xx: SECURE BOOT- Enable chain of trust in SPL 2016-07-21 11:09:23 -07:00
mpc83xx arch/powerpc: Simplify some calculations using ARRAY_SIZE() macro. 2016-06-03 22:13:12 -07:00
mpc85xx powerpc/mpc85xx: T104x: Add nand secure boot target 2016-07-21 11:09:34 -07:00
mpc86xx Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
mpc512x arch/powerpc: Simplify some calculations using ARRAY_SIZE() macro. 2016-06-03 22:13:12 -07:00
mpc8260 arch/powerpc: Simplify some calculations using ARRAY_SIZE() macro. 2016-06-03 22:13:12 -07:00
ppc4xx Various, unrelated tree-wide typo fixes. 2016-07-16 09:43:12 -04:00
Makefile Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00