Skip to contentSkip to conversation

arm: socfpga: Move linux_qspi_enable from bootcommand to board_prep_linux function

PATCH New Jit Loon Lim 1 participant 1 message Nov 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: socfpga: Move linux_qspi_enable from bootcommand to board_prep_linux function

From: Siew Chin Lim <[email protected]>

Move 'linux_qspi_enable' 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 devices.

U-Boot will update 'fdt_addr' environment value based on FIT image in board_prep_linux function, and 'linux_qspi_enable' will refer to 'fdt_addr' environment value to retrieve the device tree node.

---
 configs/socfpga_agilex_nand_atf_defconfig    | 2 +-
 configs/socfpga_agilex_qspi_atf_defconfig    | 2 +-
 configs/socfpga_stratix10_nand_atf_defconfig | 2 +-
 configs/socfpga_stratix10_qspi_atf_defconfig | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
configs/socfpga_agilex_nand_atf_defconfig +1 -1
index 558dda1a2e..fb92ff2514 100755
@@ -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 linux_qspi_enable; run rsu_status; run nandfitboot"
+CONFIG_BOOTCOMMAND="run nandfitload; run rsu_status; run nandfitboot"
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_NAND_SUPPORT=y
 CONFIG_SPL_CACHE=y
configs/socfpga_agilex_qspi_atf_defconfig +1 -1
index 745aac3c5c..9d97d34c77 100755
@@ -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 linux_qspi_enable;run rsu_status;run qspifitboot"
+CONFIG_BOOTCOMMAND="sf probe;run qspifitload;run rsu_status;run qspifitboot"
 CONFIG_SPL_CACHE=y
 CONFIG_SPL_SPI_LOAD=y
 CONFIG_SPL_ATF=y
configs/socfpga_stratix10_nand_atf_defconfig +1 -1
index 7eb956733c..a3fd9742e8 100755
@@ -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 linux_qspi_enable; run rsu_status; run nandfitboot"
+CONFIG_BOOTCOMMAND="run nandfitload; run rsu_status; run nandfitboot"
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_NAND_SUPPORT=y
 CONFIG_SPL_SPI_LOAD=y
configs/socfpga_stratix10_qspi_atf_defconfig +1 -1
index 5f42c17d47..d9e55de4dc 100755
@@ -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 linux_qspi_enable;run rsu_status;run qspifitboot"
+CONFIG_BOOTCOMMAND="sf probe;run qspifitload;run rsu_status;run qspifitboot"
 CONFIG_SPL_SPI_LOAD=y
 CONFIG_SPL_ATF=y
 CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y
Signature · 1 line
2.26.2