u-boot-brain/arch/powerpc/cpu/mpc85xx
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
..
b4860_ids.c net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
b4860_serdes.c 85xx/b4860: Add alternate serdes protocols for B4860/B4420 2014-12-05 08:06:12 -08:00
bsc9132_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
c29x_serdes.c powerpc/mpc85xx: Cleanup license header in source files 2013-08-12 15:04:24 -07:00
cmd_errata.c driver/ddr/fsl: Add workaround for A009663 2016-01-25 08:24:15 -08:00
commproc.c ppc: Move dp_alloc_base, dp_alloc_top to arch_global_data 2013-02-04 09:05:43 -05:00
config.mk powerpc: remove redundant CPU definition 2014-07-30 14:42:03 -04:00
cpu_init_early.c powerpc: mpc85xx: Enable pre-relocation malloc for MPC85xx 2016-04-08 15:42:10 -07:00
cpu_init.c powerpc/mpc85xx: T104x: Add nand secure boot target 2016-07-21 11:09:34 -07:00
cpu.c powerpc/mpc85xx: Add DSP side awareness for Freescale Heterogeneous SoCs 2015-03-04 10:15:29 -08:00
ether_fcc.c arch/powerpc: Simplify some calculations using ARRAY_SIZE() macro. 2016-06-03 22:13:12 -07:00
fdt.c fm: fdt: Move fman ucode fixup to driver code 2016-02-24 08:51:13 -08:00
fsl_corenet_serdes.c fsl/mpc85xx: define common serdes_clock_to_string function 2013-10-24 09:36:18 -07:00
fsl_corenet_serdes.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_corenet2_serdes.c fsl_*_serdes.c: Modify memset call in serdes_init 2015-12-13 18:27:29 -08:00
fsl_corenet2_serdes.h powerpc/asm: Move function declaration of 'serdes_get_prtcl' to fsl_serdes.h 2013-08-09 12:41:41 -07:00
interrupts.c mpc85xx: fix interrupt init to not affect watchdog 2014-08-01 14:17:44 -07:00
Kconfig mpc85xx: Add support for the Varisys Cyrus board 2015-11-04 15:19:34 -08:00
liodn.c net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
Makefile powerpc: mpc85xx: Do not build errata command in SPL 2016-07-05 17:40:28 +02:00
mp.c Various, unrelated tree-wide typo fixes. 2016-07-16 09:43:12 -04:00
mp.h powerpc/mpc85xx: Rewrite spin table to comply with ePAPR v1.1 2012-10-22 14:31:32 -05:00
mpc8536_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc8544_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc8548_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc8568_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc8569_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc8572_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
p1010_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
p1021_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
p1022_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
p1023_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
p2020_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
p2041_ids.c net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
p2041_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
p3041_ids.c net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
p3041_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
p4080_ids.c net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
p4080_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
p5020_ids.c net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
p5020_serdes.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
p5040_ids.c net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
p5040_serdes.c Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
pci.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
portals.c powerpc/mpc85xx: Don't deref NULL if qman portal lacks cell-index 2015-05-04 09:24:57 -07:00
qe_io.c QE/U-QE: Add U-QE support 2014-04-22 17:58:47 -07:00
release.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
resetvec.S Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
serial_scc.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
speed.c mpc85xx/t2081: enable parsing DDR ratio for T2081 rev1.1 2015-11-02 08:51:50 -08:00
spl_minimal.c powerpc/mpc85xx: Fix boot_flag for calling board_init_f() 2014-05-13 08:31:22 -07:00
start.S powerpc/mpc85xx: T104x: Add nand secure boot target 2016-07-21 11:09:34 -07:00
t1024_ids.c net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
t1024_serdes.c powerpc/t1024: add serdes protocol 0x40 and 0x5f 2015-01-16 09:30:49 -08:00
t1040_ids.c net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
t1040_serdes.c arch/powerpc: Add SGMII support for the L2 Switch ports 2015-01-16 09:32:26 -08:00
t2080_ids.c net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
t2080_serdes.c powerpc/t2080: add serdes2 protocol 0x2e 2014-12-05 08:06:07 -08:00
t4240_ids.c net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
t4240_serdes.c powerpc/t4240: update serdes table 2015-07-31 08:50:19 -07:00
tlb.c powerpc: Remove __ilog2_u64 and ffs4 from bitops 2015-11-05 16:47:05 -05:00
traps.c common: Add get_effective_memsize() to memsize.c 2014-02-21 11:06:13 -05:00
u-boot-nand_spl.lds mpc85xx/u-boot*.lds: remove _GLOBAL_OFFSET_TABLE_ definition 2015-11-09 23:21:06 +00:00
u-boot-nand.lds mpc85xx/u-boot*.lds: remove _GLOBAL_OFFSET_TABLE_ definition 2015-11-09 23:21:06 +00:00
u-boot-spl.lds mpc85xx/u-boot*.lds: remove _GLOBAL_OFFSET_TABLE_ definition 2015-11-09 23:21:06 +00:00
u-boot.lds mpc85xx/u-boot*.lds: remove _GLOBAL_OFFSET_TABLE_ definition 2015-11-09 23:21:06 +00:00