diff options
author | Sin Hui Kho <sin.hui.kho@intel.com> | 2021-04-28 16:12:42 +0800 |
---|---|---|
committer | Sin Hui Kho <sin.hui.kho@intel.com> | 2021-05-05 23:26:57 +0800 |
commit | 99ccd189afb2c50233574b7aa9adb3d1b5e4767e (patch) | |
tree | 817ae73a2736c63c991643813b3e625cda9bca21 | |
parent | 3e7802567951f047781ee31e2a1bea1bf57dcd01 (diff) | |
download | u-boot-socfpga-99ccd189afb2c50233574b7aa9adb3d1b5e4767e.tar.gz |
arm: socfpga: Move rsu_status from bootcommand to board_prep_linux function
Move 'rsu_status' from bootcommand to board_prep_linux function when
OS booted from FIT image for Stratix 10 and Agilex. This flow is common for
all Intel SOC64 device.
In 'rsu_status', it contains 'rsu dtb' command that will update Linux DTB
qspi-boot partition offset with spt0 value before passing to Linux. Also,
this is done after linux_qspi_enable.
-rw-r--r-- | arch/arm/mach-socfpga/board.c | 2 | ||||
-rw-r--r-- | configs/socfpga_agilex_atf_defconfig | 2 | ||||
-rw-r--r-- | configs/socfpga_agilex_nand_atf_defconfig | 2 | ||||
-rw-r--r-- | configs/socfpga_agilex_qspi_atf_defconfig | 2 | ||||
-rw-r--r-- | configs/socfpga_n5x_atf_defconfig | 2 | ||||
-rw-r--r-- | configs/socfpga_stratix10_atf_defconfig | 2 | ||||
-rw-r--r-- | configs/socfpga_stratix10_nand_atf_defconfig | 2 | ||||
-rw-r--r-- | configs/socfpga_stratix10_qspi_atf_defconfig | 2 |
8 files changed, 9 insertions, 7 deletions
diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c index f5a3f2ad62..03830a67b5 100644 --- a/arch/arm/mach-socfpga/board.c +++ b/arch/arm/mach-socfpga/board.c @@ -134,6 +134,8 @@ void board_prep_linux(bootm_headers_t *images) if (IS_ENABLED(CONFIG_CADENCE_QSPI)) { if (env_get("linux_qspi_enable")) run_command(env_get("linux_qspi_enable"), 0); + if (env_get("rsu_status")) + run_command(env_get("rsu_status"), 0); } } #endif diff --git a/configs/socfpga_agilex_atf_defconfig b/configs/socfpga_agilex_atf_defconfig index 7095b25685..37579709ef 100644 --- a/configs/socfpga_agilex_atf_defconfig +++ b/configs/socfpga_agilex_atf_defconfig @@ -25,7 +25,7 @@ CONFIG_BOOTDELAY=5 CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="earlycon panic=-1" CONFIG_USE_BOOTCOMMAND=y -CONFIG_BOOTCOMMAND="run fatscript;run mmcfitload;run rsu_status;run mmcfitboot" +CONFIG_BOOTCOMMAND="run fatscript;run mmcfitload;run mmcfitboot" CONFIG_SPL_CACHE=y CONFIG_SPL_SPI_LOAD=y CONFIG_SPL_ATF=y diff --git a/configs/socfpga_agilex_nand_atf_defconfig b/configs/socfpga_agilex_nand_atf_defconfig index ffe7ce8a1a..91285c682c 100644 --- a/configs/socfpga_agilex_nand_atf_defconfig +++ b/configs/socfpga_agilex_nand_atf_defconfig @@ -26,7 +26,7 @@ CONFIG_BOOTDELAY=5 CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="earlycon panic=-1" CONFIG_USE_BOOTCOMMAND=y -CONFIG_BOOTCOMMAND="run nandfitload; run rsu_status; run nandfitboot" +CONFIG_BOOTCOMMAND="run nandfitload;run nandfitboot" CONFIG_SPL_MTD_SUPPORT=y CONFIG_SPL_NAND_SUPPORT=y CONFIG_SPL_CACHE=y diff --git a/configs/socfpga_agilex_qspi_atf_defconfig b/configs/socfpga_agilex_qspi_atf_defconfig index 13210e451f..a7c411b5f9 100644 --- a/configs/socfpga_agilex_qspi_atf_defconfig +++ b/configs/socfpga_agilex_qspi_atf_defconfig @@ -27,7 +27,7 @@ CONFIG_BOOTDELAY=5 CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="earlycon panic=-1" CONFIG_USE_BOOTCOMMAND=y -CONFIG_BOOTCOMMAND="sf probe;run qspifitload;run rsu_status;run qspifitboot" +CONFIG_BOOTCOMMAND="sf probe;run qspifitload;run qspifitboot" CONFIG_SPL_CACHE=y CONFIG_SPL_SPI_LOAD=y CONFIG_SPL_ATF=y diff --git a/configs/socfpga_n5x_atf_defconfig b/configs/socfpga_n5x_atf_defconfig index 4023512b7a..6552b9eb08 100644 --- a/configs/socfpga_n5x_atf_defconfig +++ b/configs/socfpga_n5x_atf_defconfig @@ -26,7 +26,7 @@ CONFIG_BOOTDELAY=5 CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="earlycon panic=-1 earlyprintk=ttyS0,115200" CONFIG_USE_BOOTCOMMAND=y -CONFIG_BOOTCOMMAND="run fatscript;run mmcfitload;run rsu_status;run mmcfitboot" +CONFIG_BOOTCOMMAND="run fatscript;run mmcfitload;run mmcfitboot" CONFIG_SPL_CACHE=y CONFIG_SPL_SPI_LOAD=y CONFIG_SPL_ATF=y diff --git a/configs/socfpga_stratix10_atf_defconfig b/configs/socfpga_stratix10_atf_defconfig index e6495842bd..11c4d08c9c 100644 --- a/configs/socfpga_stratix10_atf_defconfig +++ b/configs/socfpga_stratix10_atf_defconfig @@ -25,7 +25,7 @@ CONFIG_BOOTDELAY=5 CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="earlycon panic=-1" CONFIG_USE_BOOTCOMMAND=y -CONFIG_BOOTCOMMAND="run fatscript;run mmcfitload;run rsu_status;run mmcfitboot" +CONFIG_BOOTCOMMAND="run fatscript;run mmcfitload;run mmcfitboot" CONFIG_SPL_SPI_LOAD=y CONFIG_SPL_ATF=y CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y diff --git a/configs/socfpga_stratix10_nand_atf_defconfig b/configs/socfpga_stratix10_nand_atf_defconfig index 2c1741adfa..5a6aeb738d 100644 --- a/configs/socfpga_stratix10_nand_atf_defconfig +++ b/configs/socfpga_stratix10_nand_atf_defconfig @@ -27,7 +27,7 @@ CONFIG_BOOTDELAY=5 CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="earlycon panic=-1" CONFIG_USE_BOOTCOMMAND=y -CONFIG_BOOTCOMMAND="run nandfitload; run rsu_status; run nandfitboot" +CONFIG_BOOTCOMMAND="run nandfitload;run nandfitboot" CONFIG_SPL_MTD_SUPPORT=y CONFIG_SPL_NAND_SUPPORT=y CONFIG_SPL_SPI_LOAD=y diff --git a/configs/socfpga_stratix10_qspi_atf_defconfig b/configs/socfpga_stratix10_qspi_atf_defconfig index 393ab37bc8..33dc6e8e38 100644 --- a/configs/socfpga_stratix10_qspi_atf_defconfig +++ b/configs/socfpga_stratix10_qspi_atf_defconfig @@ -27,7 +27,7 @@ CONFIG_BOOTDELAY=5 CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="earlycon panic=-1" CONFIG_USE_BOOTCOMMAND=y -CONFIG_BOOTCOMMAND="sf probe;run qspifitload;run rsu_status;run qspifitboot" +CONFIG_BOOTCOMMAND="sf probe;run qspifitload;run qspifitboot" CONFIG_SPL_SPI_LOAD=y CONFIG_SPL_ATF=y CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y |