]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Convert CONFIG_BOARD_POSTCLK_INIT to Kconfig
authorTom Rini <trini@konsulko.com>
Fri, 25 Feb 2022 16:19:47 +0000 (11:19 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 3 Mar 2022 21:51:19 +0000 (16:51 -0500)
This converts the following to Kconfig:
   CONFIG_BOARD_POSTCLK_INIT

Signed-off-by: Tom Rini <trini@konsulko.com>
README
arch/arm/Kconfig
arch/xtensa/Kconfig
common/Kconfig
include/configs/brppt2.h
include/configs/mx6_common.h
include/configs/mx7ulp_com.h
include/configs/mx7ulp_evk.h
include/configs/xtfpga.h

diff --git a/README b/README
index f51f392111f9d9209f498238cbf4f4c2a6db714c..5d2c1baec51278d88710f15a5d3d2453433355e7 100644 (file)
--- a/README
+++ b/README
@@ -1972,7 +1972,6 @@ typically in board_init_f() and board_init_r().
 - CONFIG_BOARD_EARLY_INIT_F: Call board_early_init_f()
 - CONFIG_BOARD_EARLY_INIT_R: Call board_early_init_r()
 - CONFIG_BOARD_LATE_INIT: Call board_late_init()
-- CONFIG_BOARD_POSTCLK_INIT: Call board_postclk_init()
 
 Configuration Settings:
 -----------------------
index 391a77c2b44e1b1be520634b436bdbe9ffdcb831..06a540d965dac95a4b3335d4f0e32a7c020beadd 100644 (file)
@@ -869,6 +869,7 @@ config ARCH_MX31
 
 config ARCH_MX7ULP
        bool "NXP MX7ULP"
+       select BOARD_POSTCLK_INIT
        select CPU_V7A
        select GPIO_EXTRA_HEADER
        select MACH_IMX
@@ -894,6 +895,7 @@ config ARCH_MX7
 
 config ARCH_MX6
        bool "Freescale MX6"
+       select BOARD_POSTCLK_INIT
        select CPU_V7A
        select GPIO_EXTRA_HEADER
        select MACH_IMX
index 35e5b89dda047fcd5e059ba65c1ae36cff4a84fe..8f668cc67ed07e57988323650f6d43dd228c20a3 100644 (file)
@@ -13,6 +13,7 @@ choice
 
 config TARGET_XTFPGA
        bool "Support XTFPGA"
+       select BOARD_POSTCLK_INIT
 
 endchoice
 
index 82cd864baf9362a321088bc291779acdaadcf126..add4cdae0282d348fe6230b260c4f921f9187853 100644 (file)
@@ -524,6 +524,12 @@ config BOARD_EARLY_INIT_R
          relocation. With this option, U-Boot calls board_early_init_r()
          in the post-relocation init sequence.
 
+config BOARD_POSTCLK_INIT
+       bool "Call board_postclk_init"
+       help
+         Some boards need this to initialize select items, after clocks /
+         timebase and before env / serial.
+
 config BOARD_LATE_INIT
        bool "Execute Board late init"
        help
index 7ab7f559e3ed0be155b22fb8e7aac5d33003d42f..612999fbabe3d505d1b4bb6cdd99a9f838463cec 100644 (file)
@@ -17,7 +17,6 @@
 #define CONFIG_SYS_PL310_BASE          L2_PL310_BASE
 #endif /* !CONFIG_SYS_L2CACHE_OFF */
 
-#define CONFIG_BOARD_POSTCLK_INIT
 #define CONFIG_MXC_GPT_HCLK
 
 /* MMC */
index 5ff931ee3bc997a3678b0c9bed741488df017521..a0e481703bcb61ab569b863608734fbb3f4bb234 100644 (file)
@@ -18,7 +18,6 @@
 #endif
 
 #endif
-#define CONFIG_BOARD_POSTCLK_INIT
 #define CONFIG_MXC_GPT_HCLK
 
 #define CONFIG_SYS_BOOTM_LEN   0x1000000
index 75f5cf0b6de37fa39c4f458fcbe39465ee683dba..319de9b01429efa4d6779031e9ad74f86fc1b902 100644 (file)
@@ -15,7 +15,6 @@
 #include "imx7ulp_spl.h"
 #endif
 
-#define CONFIG_BOARD_POSTCLK_INIT
 #define CONFIG_SYS_BOOTM_LEN           0x1000000
 
 /*
index 8f2cbc643eeca5dfe1f1ce448cd21abcdda052db..e80d748d991ba06fc47c8dbbfc3cc80dc2e891d1 100644 (file)
@@ -11,7 +11,6 @@
 #include <linux/sizes.h>
 #include <asm/arch/imx-regs.h>
 
-#define CONFIG_BOARD_POSTCLK_INIT
 #define CONFIG_SYS_BOOTM_LEN           0x1000000
 
 #define CONFIG_MMCROOT                  "/dev/mmcblk0p2"  /* USDHC1 */
index 8c2cdb5cbdd8f45d166f61908b4a9cbd68eee879..038dd775312fb988e6b9091901f6fe5f340c6ad3 100644 (file)
@@ -97,8 +97,6 @@
 /* U-Boot general configuration */
 /*==============================*/
 
-#define CONFIG_BOARD_POSTCLK_INIT
-
 #define CONFIG_BOOTFILE                        "uImage"
        /* Console I/O Buffer Size  */
 #define CONFIG_SYS_CBSIZE              1024