]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: zynq: Move to select'ing ARCH_EARLY_INIT_R if we have FPGA
authorTom Rini <trini@konsulko.com>
Thu, 16 Feb 2023 03:36:49 +0000 (22:36 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 2 Mar 2023 20:32:25 +0000 (15:32 -0500)
The function arch_early_init_r only does anything on these platforms if
we have FPGA (or SPL and SPL_FPGA) enabled, so move the logic to select
based on that.

Cc: Michal Simek <michal.simek@amd.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/Kconfig

index 724cbdde257cb3ec198e4438e3c7703fead509f8..c51f15fcf465a8036c83d889c65b1c506d0b12cf 100644 (file)
@@ -1209,6 +1209,7 @@ config ARCH_VF610
 config ARCH_ZYNQ
        bool "Xilinx Zynq based platform"
        select ARM_TWD_TIMER
+       select ARCH_EARLY_INIT_R if FPGA || (SPL && SPL_FPGA)
        select CLK
        select CLK_ZYNQ
        select CPU_V7A
@@ -1230,7 +1231,6 @@ config ARCH_ZYNQ
        select SPL_TIMER if SPL
        select SUPPORT_SPL
        select TIMER
-       imply ARCH_EARLY_INIT_R
        imply BOARD_LATE_INIT
        imply CMD_CLK
        imply CMD_DM