mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
armv8: ls1012aqds: Add TFABOOT support
TFABOOT support includes: - ls1012aqds_tfa_defconfig to be loaded by trusted firmware - environment address and size changes for TFABOOT - define BOOTCOMMAND for TFABOOT Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com> Signed-off-by: Vinitha V Pillai <vinitha.pillai@nxp.com> Signed-off-by: Pankit Garg <pankit.garg@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
e5141cbe96
commit
10c8aa16d4
4 changed files with 144 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
||||||
LS1012AQDS BOARD
|
LS1012AQDS BOARD
|
||||||
M: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
|
M: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
|
||||||
|
M: Rajesh Bhagat <rajesh.bhagat@nxp.com>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: board/freescale/ls1012aqds/
|
F: board/freescale/ls1012aqds/
|
||||||
F: include/configs/ls1012aqds.h
|
F: include/configs/ls1012aqds.h
|
||||||
F: configs/ls1012aqds_qspi_defconfig
|
F: configs/ls1012aqds_qspi_defconfig
|
||||||
|
F: configs/ls1012aqds_tfa_defconfig
|
||||||
|
|
|
@ -57,6 +57,16 @@ int checkboard(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_TFABOOT
|
||||||
|
int dram_init(void)
|
||||||
|
{
|
||||||
|
gd->ram_size = tfa_get_dram_size();
|
||||||
|
if (!gd->ram_size)
|
||||||
|
gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#else
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
static const struct fsl_mmdc_info mparam = {
|
static const struct fsl_mmdc_info mparam = {
|
||||||
|
@ -76,7 +86,6 @@ int dram_init(void)
|
||||||
};
|
};
|
||||||
|
|
||||||
mmdc_init(&mparam);
|
mmdc_init(&mparam);
|
||||||
|
|
||||||
gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
|
gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
|
||||||
#if !defined(CONFIG_SPL) || defined(CONFIG_SPL_BUILD)
|
#if !defined(CONFIG_SPL) || defined(CONFIG_SPL_BUILD)
|
||||||
/* This will break-before-make MMU for DDR */
|
/* This will break-before-make MMU for DDR */
|
||||||
|
@ -85,6 +94,7 @@ int dram_init(void)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int board_early_init_f(void)
|
int board_early_init_f(void)
|
||||||
{
|
{
|
||||||
|
@ -112,8 +122,9 @@ int board_init(void)
|
||||||
|
|
||||||
/* Set CCI-400 control override register to enable barrier
|
/* Set CCI-400 control override register to enable barrier
|
||||||
* transaction */
|
* transaction */
|
||||||
out_le32(&cci->ctrl_ord,
|
if (current_el() == 3)
|
||||||
CCI400_CTRLORD_EN_BARRIER);
|
out_le32(&cci->ctrl_ord,
|
||||||
|
CCI400_CTRLORD_EN_BARRIER);
|
||||||
|
|
||||||
#ifdef CONFIG_SYS_FSL_ERRATUM_A010315
|
#ifdef CONFIG_SYS_FSL_ERRATUM_A010315
|
||||||
erratum_a010315();
|
erratum_a010315();
|
||||||
|
|
65
configs/ls1012aqds_tfa_SECURE_BOOT_defconfig
Normal file
65
configs/ls1012aqds_tfa_SECURE_BOOT_defconfig
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
CONFIG_ARM=y
|
||||||
|
CONFIG_TARGET_LS1012AQDS=y
|
||||||
|
CONFIG_SECURE_BOOT=y
|
||||||
|
CONFIG_SYS_TEXT_BASE=0x82000000
|
||||||
|
CONFIG_SEC_FIRMWARE_ARMV8_PSCI=y
|
||||||
|
CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT=y
|
||||||
|
CONFIG_QSPI_AHB_INIT=y
|
||||||
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
|
CONFIG_NR_DRAM_BANKS=2
|
||||||
|
# CONFIG_SYS_MALLOC_F is not set
|
||||||
|
CONFIG_FIT_VERBOSE=y
|
||||||
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
|
CONFIG_OF_STDOUT_VIA_ALIAS=y
|
||||||
|
CONFIG_TFABOOT=y
|
||||||
|
CONFIG_BOOTDELAY=10
|
||||||
|
CONFIG_USE_BOOTARGS=y
|
||||||
|
CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 quiet lpj=250000"
|
||||||
|
# CONFIG_USE_BOOTCOMMAND is not set
|
||||||
|
CONFIG_MISC_INIT_R=y
|
||||||
|
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||||
|
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||||
|
CONFIG_CMD_GREPENV=y
|
||||||
|
CONFIG_CMD_EEPROM=y
|
||||||
|
CONFIG_CMD_MEMTEST=y
|
||||||
|
CONFIG_CMD_GPT=y
|
||||||
|
CONFIG_CMD_I2C=y
|
||||||
|
CONFIG_CMD_MMC=y
|
||||||
|
CONFIG_CMD_PCI=y
|
||||||
|
CONFIG_CMD_SF=y
|
||||||
|
CONFIG_CMD_USB=y
|
||||||
|
# CONFIG_CMD_SETEXPR is not set
|
||||||
|
CONFIG_CMD_CACHE=y
|
||||||
|
CONFIG_CMD_DATE=y
|
||||||
|
CONFIG_OF_CONTROL=y
|
||||||
|
CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1012a-qds"
|
||||||
|
CONFIG_ENV_IS_NOWHERE=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
|
CONFIG_DM=y
|
||||||
|
CONFIG_SCSI_AHCI=y
|
||||||
|
CONFIG_SATA_CEVA=y
|
||||||
|
CONFIG_DM_MMC=y
|
||||||
|
CONFIG_FSL_ESDHC=y
|
||||||
|
CONFIG_DM_SPI_FLASH=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
|
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
||||||
|
CONFIG_FSL_PFE=y
|
||||||
|
CONFIG_DM_ETH=y
|
||||||
|
CONFIG_E1000=y
|
||||||
|
CONFIG_PCI=y
|
||||||
|
CONFIG_DM_PCI=y
|
||||||
|
CONFIG_DM_PCI_COMPAT=y
|
||||||
|
CONFIG_PCIE_LAYERSCAPE=y
|
||||||
|
CONFIG_SCSI=y
|
||||||
|
CONFIG_DM_SCSI=y
|
||||||
|
CONFIG_SYS_NS16550=y
|
||||||
|
CONFIG_SPI=y
|
||||||
|
CONFIG_DM_SPI=y
|
||||||
|
CONFIG_FSL_DSPI=y
|
||||||
|
CONFIG_USB=y
|
||||||
|
CONFIG_DM_USB=y
|
||||||
|
CONFIG_USB_XHCI_HCD=y
|
||||||
|
CONFIG_USB_XHCI_DWC3=y
|
||||||
|
CONFIG_USB_STORAGE=y
|
||||||
|
CONFIG_RSA=y
|
||||||
|
CONFIG_RSA_SOFTWARE_EXP=y
|
63
configs/ls1012aqds_tfa_defconfig
Normal file
63
configs/ls1012aqds_tfa_defconfig
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
CONFIG_ARM=y
|
||||||
|
CONFIG_TARGET_LS1012AQDS=y
|
||||||
|
CONFIG_SYS_TEXT_BASE=0x82000000
|
||||||
|
CONFIG_QSPI_AHB_INIT=y
|
||||||
|
CONFIG_TFABOOT=y
|
||||||
|
CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT=y
|
||||||
|
CONFIG_SEC_FIRMWARE_ARMV8_PSCI=y
|
||||||
|
CONFIG_AHCI=y
|
||||||
|
CONFIG_DISTRO_DEFAULTS=y
|
||||||
|
CONFIG_NR_DRAM_BANKS=2
|
||||||
|
# CONFIG_SYS_MALLOC_F is not set
|
||||||
|
CONFIG_FIT_VERBOSE=y
|
||||||
|
CONFIG_OF_BOARD_SETUP=y
|
||||||
|
CONFIG_OF_STDOUT_VIA_ALIAS=y
|
||||||
|
CONFIG_BOOTDELAY=10
|
||||||
|
CONFIG_USE_BOOTARGS=y
|
||||||
|
CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 quiet lpj=250000"
|
||||||
|
# CONFIG_USE_BOOTCOMMAND is not set
|
||||||
|
CONFIG_MISC_INIT_R=y
|
||||||
|
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||||
|
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
||||||
|
CONFIG_CMD_GREPENV=y
|
||||||
|
CONFIG_CMD_EEPROM=y
|
||||||
|
CONFIG_CMD_MEMTEST=y
|
||||||
|
CONFIG_CMD_GPT=y
|
||||||
|
CONFIG_CMD_I2C=y
|
||||||
|
CONFIG_CMD_MMC=y
|
||||||
|
CONFIG_CMD_PCI=y
|
||||||
|
CONFIG_CMD_SF=y
|
||||||
|
CONFIG_CMD_USB=y
|
||||||
|
# CONFIG_CMD_SETEXPR is not set
|
||||||
|
CONFIG_CMD_CACHE=y
|
||||||
|
CONFIG_CMD_DATE=y
|
||||||
|
CONFIG_OF_CONTROL=y
|
||||||
|
CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1012a-qds"
|
||||||
|
CONFIG_ENV_IS_IN_SPI_FLASH=y
|
||||||
|
CONFIG_NET_RANDOM_ETHADDR=y
|
||||||
|
CONFIG_DM=y
|
||||||
|
CONFIG_SCSI_AHCI=y
|
||||||
|
CONFIG_SATA_CEVA=y
|
||||||
|
CONFIG_DM_MMC=y
|
||||||
|
CONFIG_FSL_ESDHC=y
|
||||||
|
CONFIG_DM_SPI_FLASH=y
|
||||||
|
CONFIG_SPI_FLASH=y
|
||||||
|
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
||||||
|
CONFIG_FSL_PFE=y
|
||||||
|
CONFIG_DM_ETH=y
|
||||||
|
CONFIG_E1000=y
|
||||||
|
CONFIG_PCI=y
|
||||||
|
CONFIG_DM_PCI=y
|
||||||
|
CONFIG_DM_PCI_COMPAT=y
|
||||||
|
CONFIG_PCIE_LAYERSCAPE=y
|
||||||
|
CONFIG_SCSI=y
|
||||||
|
CONFIG_DM_SCSI=y
|
||||||
|
CONFIG_SYS_NS16550=y
|
||||||
|
CONFIG_SPI=y
|
||||||
|
CONFIG_DM_SPI=y
|
||||||
|
CONFIG_FSL_DSPI=y
|
||||||
|
CONFIG_USB=y
|
||||||
|
CONFIG_DM_USB=y
|
||||||
|
CONFIG_USB_XHCI_HCD=y
|
||||||
|
CONFIG_USB_XHCI_DWC3=y
|
||||||
|
CONFIG_USB_STORAGE=y
|
Loading…
Reference in a new issue