]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: zynqmp: Fix dependencies around ZYNQMP_PSU_INIT_ENABLED
authorMichal Simek <michal.simek@xilinx.com>
Thu, 17 Feb 2022 13:28:40 +0000 (14:28 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 21 Feb 2022 12:20:19 +0000 (13:20 +0100)
ZYNQMP_PSU_INIT_ENABLED is called only when BOARD_EARLY_INIT_F is defined
that's why cover this dependency in Kconfig.
 board_early_init_f() is only part related to
CONFIG_ZYNQMP_PSU_INIT_ENABLED which is disabled now that's why disable
BOARD_EARLY_INIT_F and also build board_early_init_f() only when
CONFIG_BOARD_EARLY_INIT_F is enabled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/d89253ec1590cd513dcd4bfbedebae618bd6d605.1645104518.git.michal.simek@xilinx.com
arch/arm/mach-zynqmp/Kconfig
board/xilinx/zynqmp/zynqmp.c
configs/xilinx_zynqmp_virt_defconfig

index f8b5906039d1e66af9adb5f1e448be13ebbc43d7..66045067d2fe1adf1b908f9a9babc2cbb322e5cd 100644 (file)
@@ -140,6 +140,7 @@ config DEFINE_TCM_OCM_MMAP
 
 config ZYNQMP_PSU_INIT_ENABLED
        bool "Include psu_init"
+       select BOARD_EARLY_INIT_F
        help
          Include psu_init to full u-boot. SPL include psu_init by default.
 
index 242e143cbfd7be90a3ef492ceee186e50ed4520e..3a10ed859d2c61d2f2da24cf6b3a1df8c747b233 100644 (file)
@@ -313,6 +313,7 @@ static char *zynqmp_get_silicon_idcode_name(void)
 }
 #endif
 
+#if defined(CONFIG_BOARD_EARLY_INIT_F)
 int board_early_init_f(void)
 {
 #if defined(CONFIG_ZYNQMP_PSU_INIT_ENABLED)
@@ -345,6 +346,7 @@ int board_early_init_f(void)
 
        return 0;
 }
+#endif
 
 static int multi_boot(void)
 {
index 5cdfa6c27988f9db2d3d9349f678557a26ff9e68..7b295282e37bffc577a4d45b50a5e74c1dcda055 100644 (file)
@@ -28,7 +28,6 @@ CONFIG_SPL_LOAD_FIT_ADDRESS=0x10000000
 # CONFIG_ARCH_FIXUP_FDT_MEMORY is not set
 CONFIG_USE_PREBOOT=y
 CONFIG_PREBOOT="run scsi_init;usb start"
-CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_BOARD_EARLY_INIT_R=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_FPGA=y