u-boot-brain/include
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
..
andestech
asm-generic armv8: Move secure_ram variable out of generic global data 2016-07-15 09:01:43 -07:00
bedbug
cavium
configs powerpc/mpc85xx: T104x: Add nand secure boot target 2016-07-21 11:09:34 -07:00
cramfs include: delete unused header files 2014-01-24 16:59:07 -05:00
dm dm: core: Expand platdata for of-platdata devices 2016-07-14 20:40:24 -06:00
dt-bindings mailbox: add Tegra186 HSP driver 2016-06-19 17:05:55 -06:00
faraday
fsl-mc driver: net: fsl-mc: flib changes for MC FW 9.0.0 2016-01-27 08:13:10 -08:00
grlib
jffs2
linux linux/io.h: add generic ioremap()/iounmap() defines 2016-07-14 18:22:26 -04:00
lzma
mtd
net
pcmcia
power power, tps65217: add some defines 2016-06-09 13:53:06 -04:00
samsung
spmi drivers: Add SPMI bus uclass 2016-04-01 17:18:12 -04:00
synopsys
test Fix spelling of "occurred". 2016-05-02 18:37:09 -04:00
u-boot Kconfig: Move CONFIG_FIT and related options to Kconfig 2016-03-14 19:18:07 -04:00
usb ehci-ci.h: drop generic USBCMD fields 2016-04-01 17:18:11 -04:00
zfs
_exports.h
.gitignore cmd: Fix license command 2016-03-22 12:16:13 -04:00
ACEX1K.h
adc.h dm: adc: add simple ADC uclass implementation 2015-11-02 10:38:00 +09:00
addr_map.h
aes.h
ahci.h
ali512x.h
altera.h fpga: altera: Add StratixV support 2016-03-24 09:47:43 +01:00
ambapp_ids.h
ambapp.h
android_image.h
ansi.h
api_public.h SPDX-License-Identifier: convert GPL-2.0+ / BSD-2-Clause dual-licensed files 2013-08-19 15:34:13 -04:00
armcoremodule.h
asm-offsets.h
ata.h Properly calculate ATA_SECTORWORDS, using a fixed-size integer, so it works for both 32-bit and 64-bit targets 2016-05-21 01:25:50 +02:00
atmel_hlcdc.h
atmel_lcd.h at91: video: Support driver-model for the LCD driver 2016-06-12 23:49:38 +02:00
atmel_lcdc.h
atmel_mci.h
autoboot.h autoboot: add CONFIG_AUTOBOOT to allow to not compile autoboot.c 2016-06-20 05:19:09 -04:00
axp152.h
axp209.h
axp221.h sunxi: axp: Generalize register macros for VBUS drive GPIO 2016-03-31 17:03:52 +02:00
axp809.h sunxi: power: add AXP809 support 2016-05-25 17:52:39 +02:00
axp818.h sunxi: Implement poweroff support for axp818 pmic 2016-05-25 17:52:39 +02:00
axp_pmic.h sunxi: power: add AXP809 support 2016-05-25 17:52:39 +02:00
backlight.h
bcd.h
bios_emul.h dm: pci: Convert bios_emu to use the driver model PCI API 2016-01-24 12:07:19 +08:00
bitfield.h
blk.h dm: blk: Add a comment as to why the bdev member is needed 2016-05-17 09:54:43 -06:00
bmp_layout.h
bootcount.h
bootm.h
bootretry.h
bootstage.h bootstage: call show_boot_progress also in SPL 2016-06-09 13:53:08 -04:00
bouncebuf.h
bus_vcxk.h
bzlib.h
cbfs.h
circbuf.h
cli_hush.h
cli.h
clk-uclass.h clk: convert API to match reset/mailbox style 2016-06-19 17:05:55 -06:00
clk.h dm: clk: Add support for of-platdata 2016-07-14 20:40:24 -06:00
cmd_spl.h
command.h Drop command-processing code when CONFIG_CMDLINE is disabled 2016-04-01 17:17:40 -04:00
common_timing_params.h
common.h Add warn_non_spl() to show a message in U-Boot proper 2016-07-14 18:33:11 -04:00
commproc.h
compiler.h
config_cmd_all.h dm: scsi: Rename CONFIG_CMD_SCSI to CONFIG_SCSI 2016-05-17 09:54:43 -06:00
config_defaults.h
config_distro_bootcmd.h efi_loader: Fix typo in distro script 2016-06-24 17:24:41 -04:00
config_distro_defaults.h common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option 2016-06-09 13:53:05 -04:00
config_fallbacks.h dm: scsi: Rename CONFIG_CMD_SCSI to CONFIG_SCSI 2016-05-17 09:54:43 -06:00
config_fsl_chain_trust.h SECURE_BOOT: Use default bootargs 2016-03-29 08:46:23 -07:00
config_phylib_all_drivers.h
config_uncmd_spl.h configs: Re-sync almost all of cmd/Kconfig 2016-04-25 15:09:40 -04:00
console.h
cortina.h
cpsw.h drivers: net: cpsw: Add reading of DT phy-handle node 2016-05-24 11:42:04 -05:00
cpu.h cpu: Add support for microcode version and CPU ID 2016-03-17 10:27:22 +08:00
crc.h include/crc.h: Remove unreferenced cyg_xxx() prototypes 2016-03-14 19:18:42 -04:00
cros_ec_message.h
cros_ec.h
dataflash.h
ddr_spd.h
debug_uart.h debug_uart: output CR along with LF 2016-03-14 15:34:50 -06:00
dfu.h dfu: usb: f_dfu: Set deferred call for dfu_flush() function 2016-02-24 19:12:32 +01:00
dialog_pmic.h
display_options.h
display.h dm: video: Add a operation to display uclass 2016-03-14 22:01:26 +01:00
div64.h
dm9000.h
dm-demo.h
dm.h
dma.h dm: implement a DMA uclass 2016-02-23 16:14:45 +05:30
dp83848.h
ds1722.h
ds4510.h
dt-structs.h dm: Add a header that provides access to the of-platdata structs 2016-07-14 20:40:24 -06:00
dtt.h
dwc3-omap-uboot.h
dwc3-uboot.h usb: dwc3: Correct datatype of base to unsigned long 2016-06-04 00:43:51 +02:00
dwmmc.h dm: mmc: dwmmc: Support CONFIG_DM_MMC_OPS 2016-07-11 14:06:44 -06:00
e500.h
ec_commands.h
edid.h
eeprom_field.h cmd: eeprom: add support for layout aware commands 2016-05-20 17:02:07 -04:00
eeprom_layout.h cmd: eeprom: add support for layout aware commands 2016-05-20 17:02:07 -04:00
efi_api.h efi_loader: Add exit support 2016-06-06 13:39:15 -04:00
efi_loader.h efi_loader: Move to normal debug infrastructure 2016-06-06 13:39:16 -04:00
efi.h include/efi_api.h: Add more detailed API definitions 2016-03-15 15:19:23 -04:00
elf.h
env_attr.h
env_callback.h
env_default.h env: avoid build error for boards without CONFIG_SYS_{CPU, BOARD} 2016-06-24 17:23:11 -04:00
env_flags.h net: fix vlan validation 2016-05-03 17:52:11 -05:00
environment.h
errno.h errno: Allow errno_str() to be used without CONFIG_ERRNO_STR 2016-07-05 13:19:08 -07:00
ethsw.h drivers: net: vsc9953: Add LAG support 2016-01-28 12:22:19 -06:00
exports.h
ext4fs.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
ext_common.h
exynos_lcd.h exynos: video: Rename variables for driver model 2016-05-25 13:25:18 +09:00
fastboot.h fastboot: sparse: resync common/image-sparse.c (part 2) 2016-06-27 16:37:38 -04:00
fat.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
fb_mmc.h fastboot: sparse: resync common/image-sparse.c (part 2) 2016-06-27 16:37:38 -04:00
fb_nand.h fastboot: sparse: resync common/image-sparse.c (part 2) 2016-06-27 16:37:38 -04:00
fdt_simplefb.h
fdt_support.h drivers:usb:common:fsl-dt-fixup: Add device-tree fixup support for xhci controller 2016-04-10 17:18:42 +02:00
fdt.h
fdtdec.h sandbox: Find keyboard driver using driver model 2016-07-11 14:06:44 -06:00
fis.h
flash.h flash: add device ID for Microchip PIC32 internal flash. 2016-05-21 01:25:50 +02:00
fm_eth.h
fpga.h fpga: Add bitstream type BIT_NONE 2016-01-27 15:55:54 +01:00
fs.h
fsl_csu.h
fsl_dcu_fb.h
fsl_ddr_dimm_params.h
fsl_ddr_sdram.h driver/ddr/fsl: Add workaround for erratum A-009801 2016-05-17 09:26:53 -07:00
fsl_ddr.h
fsl_ddrc_version.h
fsl_debug_server.h
fsl_devdis.h
fsl_diu_fb.h
fsl_dspi.h
fsl_dtsec.h
fsl_errata.h
fsl_esdhc.h mmc: fsl: introduce wp_enable 2016-06-28 12:08:53 -07:00
fsl_fman.h fm: fdt: Move fman ucode fixup to driver code 2016-02-24 08:51:13 -08:00
fsl_ifc.h
fsl_immap.h
fsl_mdio.h net: tsec: fsl_mdio: Fix several cosmetic issues 2016-01-28 12:22:49 -06:00
fsl_memac.h
fsl_mmdc.h armv8: fsl-layerscape: Add support of QorIQ LS1012A SoC 2016-06-03 14:12:50 -07:00
fsl_pmic.h
fsl_qe.h qe: move drivers/qe/qe.h to include/fsl_qe.h 2016-02-24 08:51:13 -08:00
fsl_sec_mon.h
fsl_sec.h crypto/fsl: add support for multiple SEC engines initialization 2016-05-18 08:51:46 -07:00
fsl_secboot_err.h armv8: fsl-lsch3: Add new header for secure boot 2016-03-29 08:46:20 -07:00
fsl_sfp.h armv8: ls2080: Add SFP Configs for LS2080 2016-03-29 08:46:19 -07:00
fsl_tgec.h
fsl_usb.h usb: xhci: fsl: Add workaround for USB erratum A008751 2016-06-13 15:16:46 +02:00
fsl_validate.h powerpc/mpc85xx: SECURE BOOT- Enable chain of trust in SPL 2016-07-21 11:09:23 -07:00
fsl_wdog.h
fuse.h
g_dnl.h
gdsys_fpga.h strider: Support con-dp flavor 2016-06-06 13:39:13 -04:00
gt64120.h
hash.h
hw_sha.h
hwconfig.h
i2c_eeprom.h
i2c.h drivers: i2c: mxc: Add early init 2016-06-10 13:44:58 -07:00
i2s.h
i8042.h input: i8042: Make sure the keyboard is enabled 2016-03-17 10:27:24 +08:00
ide.h dm: ide: Add support for driver-model block devices 2016-05-17 09:54:43 -06:00
image-sparse.h fastboot: sparse: implement reserve() 2016-06-27 16:37:39 -04:00
image.h image: Add functions to obtain category information 2016-07-14 18:22:30 -04:00
imx_thermal.h
initcall.h
input.h
inttypes.h
iomux.h
ioports.h
iotrace.h Allow iotrace byte access to use an address of any size 2016-05-17 09:54:43 -06:00
ipu_pixfmt.h
key_matrix.h
keyboard.h
kgdb.h
lattice.h
lcd_console.h
lcd.h
lcdvideo.h Initial revision 2001-11-03 22:15:16 +00:00
ld9040.h
led-display.h
led.h
libata.h
libfdt_env.h
libfdt.h libfdt: Add a function to write a property placeholder 2016-03-14 14:19:11 -04:00
libtizen.h exynos: Allow tizen to be built without an LCD 2016-05-25 13:25:18 +09:00
linker_lists.h
linux_logo.h
lmb.h
logbuff.h
lxt971a.h
lynxkdi.h
mailbox-uclass.h mailbox: rename headers 2016-06-19 17:05:55 -06:00
mailbox.h mailbox: rename headers 2016-06-19 17:05:55 -06:00
malloc.h malloc: use hidden visibility 2016-03-08 15:01:47 -05:00
mapmem.h
mb862xx.h
mc9sdz60.h
mc13783.h
mc13892.h
mc34704.h
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
memalign.h
membuff.h
menu.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
micrel.h
mii_phy.h
miiphy.h
mipi_display.h
misc.h
mk48t59.h
mmc.h dm: mmc: Add a way to use driver model for MMC operations 2016-07-11 14:06:44 -06:00
mpc5xx.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mpc5xxx_sdma.h
mpc5xxx.h
mpc8xx_irq.h
mpc8xx.h
mpc83xx.h
mpc85xx.h
mpc86xx.h
mpc106.h
mpc823_lcd.h
mpc8260_irq.h
mpc8260.h
msc01.h
mtd_node.h
mtd.h
mv88e6352.h
mvebu_mmc.h
mvmfp.h
nand.h nand: Embed mtd_info in struct nand_chip 2016-06-03 20:27:48 -05:00
net.h Various, unrelated tree-wide typo fixes. 2016-07-16 09:43:12 -04:00
netdev.h net: Remove unused mv88e61xx switch driver 2016-05-24 11:39:04 -05:00
ns16550.h dm: ns16550: Add support for reg-offset property 2016-03-17 21:27:39 -06:00
ns87308.h
onenand_uboot.h
os.h sandbox: Allow chaining from SPL to U-Boot proper 2016-07-14 20:40:24 -06:00
palmas.h
panel.h dm: panel: Add a panel uclass 2016-01-21 20:42:36 -07:00
part_efi.h
part.h dm: mmc: Add support for driver-model block devices 2016-05-17 09:54:43 -06:00
pc_keyb.h
pca953x.h
pca9564.h
pca9698.h
pch.h dm: pch: Add get_io_base op 2016-02-05 12:47:21 +08:00
pci_gt64120.h
pci_ids.h
pci_msc01.h
pci_rom.h
pci.h pci: make pci_get_hose_head() available to external users 2016-03-21 12:42:12 -07:00
pcmcia.h
pe.h efi_loader: Add PE image loader 2016-03-15 15:19:23 -04:00
phy.h net: phy: Add phy_interface_is_sgmii to phy.h 2016-05-24 11:42:05 -05:00
phys2bus.h
physmem.h
post.h
ppc_asm.tmpl powerpc: mpc85xx: Enable pre-relocation malloc for MPC85xx 2016-04-08 15:42:10 -07:00
ppc_defs.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ps2mult.h
pwm.h
pwrseq.h
pxa_lcd.h
qfw.h cmd: qfw: rename qemu_fw_cfg.[c|h] to qfw.[c|h] 2016-05-23 15:18:00 +08:00
radeon.h
ram.h
rc4.h
regmap.h dm: core: Add an implementation of regmap_init_mem_platdata() 2016-07-14 20:40:24 -06:00
reiserfs.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
remoteproc.h
reset-uclass.h Add a reset driver framework/uclass 2016-06-19 17:05:55 -06:00
reset.h Add a reset driver framework/uclass 2016-06-19 17:05:55 -06:00
rtc_def.h
rtc.h
s6e63d6.h
s_record.h
SA-1100.h
samsung-usb-phy-uboot.h
sandbox-adc.h
sandboxblockdev.h dm: sandbox: Add driver-model block-device support for sandbox 2016-03-14 15:34:50 -06:00
sandboxfs.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
sata.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
scf0403_lcd.h
scsi.h
sdhci.h dm: mmc: sdhci: Support CONFIG_BLK and CONFIG_DM_MMC_OPS 2016-07-11 14:06:44 -06:00
search.h
sed156x.h
sed13806.h
serial.h board: am335x: Allow to choose serial device dynamically 2016-05-27 15:47:54 -04:00
sh_pfc.h
sh_tmu.h
sja1000.h
slre.h
sm501.h
smsc_lpc47m.h
smsc_sio1007.h superio: Add SMSC SIO1007 driver 2016-02-21 13:42:52 +08:00
sound.h
sparse_defs.h
sparse_format.h
spartan2.h
spartan3.h
spd_sdram.h
spd.h
spi_flash.h
spi.h dm: spi: introduce dm api 2016-05-17 09:54:43 -06:00
spl.h common: Pass the boot device into spl_boot_mode() 2016-06-26 20:17:22 +02:00
splash.h splash_source: add support for ubifs formatted nand 2016-06-14 05:33:02 +02:00
status_led.h
stdio_dev.h
stdlib.h
stratixII.h
sx151x.h
sy8106a.h sunxi: power: add support for sy8106a driver 2016-02-23 20:50:07 +01:00
sym53c8xx.h
syscon.h dm: syscon: Add support for of-platdata 2016-07-14 20:40:24 -06:00
sysreset.h Rename reset to sysreset 2016-05-26 20:48:31 -06:00
tca642x.h
tegra-kbc.h
thermal.h
thor.h
ti-usb-phy-uboot.h
timer.h timer: Provide an early timer 2016-02-26 08:53:10 -07:00
timestamp.h
tmu.h
tpm.h dm: tpm: Remove every compilation switch for TPM driver model 2015-10-23 09:42:28 -06:00
tps6586x.h
trace.h
tsec.h net: tsec: Use priv->tbiaddr to initialize TBI PHY address 2016-01-28 12:23:19 -06:00
tsi108.h
tsi148.h
twl4030.h
twl6030.h input: TWL6030 input support for power button, USB and charger 2016-03-15 15:12:57 -04:00
tws.h
ubi_uboot.h
ubifs_uboot.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
universe.h
usb_cdc_acm.h
usb_defs.h
usb_ether.h
usb_mass_storage.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
usb.h dm: usb: Drop the get_dev() function 2016-05-17 09:54:43 -06:00
usbdescriptors.h
usbdevice.h Fix spelling of "occurred". 2016-05-02 18:37:09 -04:00
usbroothubdes.h
uuid.h
vbe.h
version.h
video_bridge.h
video_console.h video: Provide a backspace method 2016-01-30 10:55:37 +01:00
video_easylogo.h
video_fb.h
video_font_4x6.h
video_font_data.h
video_font.h
video_logo.h
video.h video: Add an enum for active low/high 2016-05-25 13:25:18 +09:00
virtex2.h
vsc7385.h
vsc9953.h drivers: net: vsc9953: Add LAG support 2016-01-28 12:22:19 -06:00
vsprintf.h
vxworks.h
w83c553f.h
wait_bit.h lib: Add wait_for_bit 2016-01-25 10:39:47 -05:00
watchdog.h Drop use of CONFIG_SYS_GENERIC_BOARD in U-Boot 2016-05-27 15:39:54 -04:00
winbond_w83627.h misc: Add simple driver to enable the legacy UART on Winbond Super IO chips 2016-01-28 13:53:30 +08:00
xilinx.h
xyzModem.h
zfs_common.h dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
zynqpl.h