u-boot/board/freescale
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
..
b4860qds freescale: Tweak various Makefiles to remove redundancy, fix aesthetics 2016-06-03 22:14:27 -07:00
bsc9131rdb freescale: Tweak various Makefiles to remove redundancy, fix aesthetics 2016-06-03 22:14:27 -07:00
bsc9132qds freescale: Tweak various Makefiles to remove redundancy, fix aesthetics 2016-06-03 22:14:27 -07:00
c29xpcie freescale: Tweak various Makefiles to remove redundancy, fix aesthetics 2016-06-03 22:14:27 -07:00
common powerpc/mpc85xx: SECURE BOOT- Enable chain of trust in SPL 2016-07-21 11:09:23 -07:00
corenet_ds powerpc: mpc85xx: Move set_liodns, setup_portals to common boot seq 2016-01-25 12:13:31 -08:00
ls1012afrdm armv8: ls1012a: Add support of ls1012afrdm board 2016-06-03 14:12:51 -07:00
ls1012aqds armv8: ls1012a: Add support of ls1012aqds board 2016-06-03 14:12:51 -07:00
ls1012ardb armv8: ls1012a: Add support of ls1012ardb board 2016-06-03 14:12:51 -07:00
ls1021aqds board/freescale: Update ddr clk_adjust 2016-06-03 14:06:57 -07:00
ls1021atwr armv7: ls102xa: Move smmu and stream id initialization into the common soc code 2016-02-24 08:51:15 -08:00
ls1043aqds armv8: Move secure_ram variable out of generic global data 2016-07-15 09:01:43 -07:00
ls1043ardb ARMv8/ls1043ardb: Integrate FSL PPA 2016-07-19 11:34:26 -07:00
ls2080a armv8: Move secure_ram variable out of generic global data 2016-07-15 09:01:43 -07:00
ls2080aqds armv8: Move secure_ram variable out of generic global data 2016-07-15 09:01:43 -07:00
ls2080ardb armv8: Move secure_ram variable out of generic global data 2016-07-15 09:01:43 -07:00
m547xevb Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
m548xevb m68k: move CONFIG_SYS_TEXT_BASE to defconfig files 2016-01-20 10:19:34 -05:00
m5208evbe m68k: move CONFIG_SYS_TEXT_BASE to defconfig files 2016-01-20 10:19:34 -05:00
m5235evb m68k: add architecture-specific u-boot.lds 2015-04-23 14:56:07 -04:00
m5249evb m68k: move CONFIG_SYS_TEXT_BASE to defconfig files 2016-01-20 10:19:34 -05:00
m5253demo m68k: move CONFIG_SYS_TEXT_BASE to defconfig files 2016-01-20 10:19:34 -05:00
m5253evbe Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
m5272c3 m68k: move CONFIG_SYS_TEXT_BASE to defconfig files 2016-01-20 10:19:34 -05:00
m5275evb m68k: move CONFIG_SYS_TEXT_BASE to defconfig files 2016-01-20 10:19:34 -05:00
m5282evb m68k: move CONFIG_SYS_TEXT_BASE to defconfig files 2016-01-20 10:19:34 -05:00
m5329evb mtd: nand: Add+use mtd_to/from_nand and nand_get/set_controller_data 2016-06-03 20:27:48 -05:00
m5373evb mtd: nand: Add+use mtd_to/from_nand and nand_get/set_controller_data 2016-06-03 20:27:48 -05:00
m52277evb Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
m53017evb Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
m54418twr m68k: M54418TWR: drop board/freescale/m54418twr/config.mk 2016-01-20 10:19:34 -05:00
m54451evb m68k: add architecture-specific u-boot.lds 2015-04-23 14:56:07 -04:00
m54455evb Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mpc832xemds Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mpc837xemds Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mpc837xerdb Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mpc5121ads Delete tests of CONFIG_OF_LIBFDT when testing CONFIG_OF_BOARD_SETUP 2016-05-27 15:41:16 -04:00
mpc8308rdb fdt: Allow ft_board_setup() to report failure 2014-11-21 04:43:15 +01:00
mpc8313erdb Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mpc8315erdb Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mpc8323erdb Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mpc8349emds fdt: Allow ft_board_setup() to report failure 2014-11-21 04:43:15 +01:00
mpc8349itx fdt: Allow ft_board_setup() to report failure 2014-11-21 04:43:15 +01:00
mpc8536ds Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
mpc8540ads Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
mpc8541cds Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
mpc8544ds Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
mpc8548cds Merge branch 'master' of git://git.denx.de/u-boot-net 2016-01-28 18:42:10 -05:00
mpc8555cds Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
mpc8560ads Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
mpc8568mds Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
mpc8569mds Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mpc8572ds Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mpc8610hpcd Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mpc8641hpcn Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mx6qarm2 mx6qarm2: imximage_mx6dl.cfg update to fix tINIT3 violation 2016-04-03 19:18:20 +02:00
mx6qsabreauto imx: mx6qsabreauto: drop duplicated net phy configuration 2016-05-31 17:36:47 +02:00
mx6sabresd mx6sabresd: Allow LVDS backlight to be functional after a kernel reboot 2016-06-18 10:25:54 +02:00
mx6slevk cosmetic: mx6slevk: Minor coding-style fix 2016-05-31 17:37:44 +02:00
mx6sxsabreauto usb: Rename ehci-fsl.h to ehci-ci.h 2016-04-01 17:18:10 -04:00
mx6sxsabresd usb: Rename ehci-fsl.h to ehci-ci.h 2016-04-01 17:18:10 -04:00
mx6ul_14x14_evk imx: mx6ulevk: change QSPI PAD DSE to 120ohm 2016-06-18 10:29:18 +02:00
mx7dsabresd mx7dsabresd: Fix LCD_PWR_EN output setting 2016-06-18 10:29:18 +02:00
mx23evk kconfig: arm: introduce symbol for ARM CPUs 2014-10-29 09:02:09 -04:00
mx25pdk mx25pdk: Remove lowlevel_init.S file 2016-01-24 11:52:45 +01:00
mx28evk Fix various typos, scattered over the code. 2016-05-05 21:39:26 -04:00
mx31ads kconfig: arm: introduce symbol for ARM CPUs 2014-10-29 09:02:09 -04:00
mx31pdk kconfig: arm: introduce symbol for ARM CPUs 2014-10-29 09:02:09 -04:00
mx35pdk Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mx51evk usb: Rename ehci-fsl.h to ehci-ci.h 2016-04-01 17:18:10 -04:00
mx53ard MAINTAINERS/mailmap: Update my email address 2016-01-11 11:22:43 -05:00
mx53evk mx53evk: Fix error handling in board_mmc_init() 2014-11-21 16:47:55 +01:00
mx53loco mx53loco: Disable printing cpuinfo 2015-04-08 10:45:50 +02:00
mx53smd MAINTAINERS/mailmap: Update my email address 2016-01-11 11:22:43 -05:00
p1_p2_rdb_pc freescale: Tweak various Makefiles to remove redundancy, fix aesthetics 2016-06-03 22:14:27 -07:00
p1_twr fdt: Allow ft_board_setup() to report failure 2014-11-21 04:43:15 +01:00
p1010rdb freescale: Tweak various Makefiles to remove redundancy, fix aesthetics 2016-06-03 22:14:27 -07:00
p1022ds freescale: Tweak various Makefiles to remove redundancy, fix aesthetics 2016-06-03 22:14:27 -07:00
p1023rdb net: Move some header files to include/ 2015-10-29 10:34:00 -07:00
p2041rdb freescale: Tweak various Makefiles to remove redundancy, fix aesthetics 2016-06-03 22:14:27 -07:00
qemu-ppce500 qemu-ppce500: pass 'range_id' around in pci_map_region 2016-01-04 12:25:34 -05:00
s32v234evb armv8: s32v234: Introduce basic support for s32v234evb 2016-06-13 08:56:35 -04:00
t4qds Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2016-06-04 12:12:26 -04:00
t4rdb Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2016-06-04 12:12:26 -04:00
t102xqds Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2016-06-04 12:12:26 -04:00
t102xrdb Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2016-06-04 12:12:26 -04:00
t104xrdb powerpc/mpc85xx: T104x: Add nand secure boot target 2016-07-21 11:09:34 -07:00
t208xqds Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2016-06-04 12:12:26 -04:00
t208xrdb Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2016-06-04 12:12:26 -04:00
t1040qds board/freescale: Update ddr clk_adjust 2016-06-03 14:06:57 -07:00
vf610twr vf610twr: Fix typo in DRAM init 2015-10-16 07:21:09 -04:00