]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: zynqmp: Build psu_spl_init for SPL all the time
authorMichal Simek <michal.simek@xilinx.com>
Thu, 17 Feb 2022 13:28:39 +0000 (14:28 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 21 Feb 2022 12:20:06 +0000 (13:20 +0100)
ZYNQMP_PSU_INIT_ENABLED specifically saying that has connection to full
U-Boot not SPL that's why build psu_spl_init for SPL all the time.

Also disable ZYNQMP_PSU_INIT_ENABLED because it ends up in situation that
psu_init() is called twice which is wrong. By default only SPL should call
it.

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

index eb6c5112b37580c5df6cdd7a1a19cca43dce04af..4f9f6b56a98a9bb0c15c8724d6742d6d8260a1cd 100644 (file)
@@ -6,6 +6,6 @@
 obj-y  += clk.o
 obj-y  += cpu.o
 obj-$(CONFIG_MP)       += mp.o
-obj-$(CONFIG_SPL_BUILD) += spl.o handoff.o
+obj-$(CONFIG_SPL_BUILD) += spl.o handoff.o psu_spl_init.o
 obj-$(CONFIG_SPL_ZYNQMP_DRAM_ECC_INIT) += ecc_spl_init.o
 obj-$(CONFIG_ZYNQMP_PSU_INIT_ENABLED)  += psu_spl_init.o
index 133a5638a8b4c37e06b65e17c2f8937f5e084eee..5cdfa6c27988f9db2d3d9349f678557a26ff9e68 100644 (file)
@@ -18,7 +18,6 @@ CONFIG_ZYNQ_MAC_IN_EEPROM=y
 CONFIG_ZYNQ_GEM_I2C_MAC_OFFSET=0x20
 CONFIG_CMD_FRU=y
 CONFIG_ZYNQMP_USB=y
-CONFIG_ZYNQMP_PSU_INIT_ENABLED=y
 CONFIG_AHCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_LOAD_ADDR=0x8000000