Finish converting CONFIG_SYS_FSL_CLK to Kconfig
authorTom Rini <trini@konsulko.com>
Mon, 13 Dec 2021 03:12:34 +0000 (22:12 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 27 Dec 2021 21:20:18 +0000 (16:20 -0500)
This converts the following to Kconfig:
   CONFIG_SYS_FSL_CLK

We move the exiting option to common/Kconfig near the other options to
control the contents of board_init_f() and note that this is a legacy
option.  We further restrict this to where the call is going to be
non-empty, for the SoCs that had only been using this for some
MMC-related clocks.

Signed-off-by: Tom Rini <trini@konsulko.com>
19 files changed:
arch/arm/cpu/armv8/fsl-layerscape/Kconfig
common/Kconfig
doc/README.fsl-clk [deleted file]
include/configs/colibri_vf.h
include/configs/km/pg-wcom-ls102xa.h
include/configs/kp_imx53.h
include/configs/ls1021aiot.h
include/configs/ls1021aqds.h
include/configs/ls1021atsn.h
include/configs/ls1021atwr.h
include/configs/m53menlo.h
include/configs/mx51evk.h
include/configs/mx53cx9020.h
include/configs/mx53loco.h
include/configs/mx53ppd.h
include/configs/mx6_common.h
include/configs/mx7_common.h
include/configs/usbarmory.h
include/configs/vf610twr.h

index 0b0e2ea..da53afc 100644 (file)
@@ -530,10 +530,6 @@ endmenu
 menu "Layerscape clock tree configuration"
        depends on FSL_LSCH2 || FSL_LSCH3
 
-config SYS_FSL_CLK
-       bool "Enable clock tree initialization"
-       default y
-
 config CLUSTER_CLK_FREQ
        int "Reference clock of core cluster"
        depends on ARCH_LS1012A
index 50ac433..0892d9b 100644 (file)
@@ -534,6 +534,15 @@ config BOARD_LATE_INIT
          So this config enable the late init code with the help of board_late_init
          function which should defined on respective boards.
 
+config SYS_FSL_CLK
+       bool
+       depends on ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3 || \
+               (FSL_ESDHC_IMX && (ARCH_MX5 || ARCH_MX6 || ARCH_MX7))
+       default y
+       help
+         Enable to call get_clocks() in board_init_f() for platforms other
+         than PowerPC or M68k.  This is a legacy option.  If not TARGET_BRPPT2
+
 config LAST_STAGE_INIT
        bool "Call board-specific as last setup step"
        help
diff --git a/doc/README.fsl-clk b/doc/README.fsl-clk
deleted file mode 100644 (file)
index 3a9927f..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-Freescale system clock options
-
-       - CONFIG_SYS_FSL_CLK
-               Enable to call get_clocks() in board_init_f() for
-               non-PPC platforms.
index a7c91b9..40984d6 100644 (file)
@@ -14,8 +14,6 @@
 #include <asm/arch/imx-regs.h>
 #include <linux/sizes.h>
 
-#define CONFIG_SYS_FSL_CLK
-
 #ifdef CONFIG_VIDEO_FSL_DCU_FB
 #define CONFIG_VIDEO_LOGO
 #define CONFIG_VIDEO_BMP_LOGO
index 32659db..d94572d 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef __CONFIG_PG_WCOM_LS102XA_H
 #define __CONFIG_PG_WCOM_LS102XA_H
 
-#define CONFIG_SYS_FSL_CLK
-
 /* include common defines/options for all Keymile boards */
 #include "keymile-common.h"
 
index 8ac381c..0983d40 100644 (file)
@@ -10,8 +10,6 @@
 #include <asm/arch/imx-regs.h>
 #include <linux/sizes.h>
 
-#define CONFIG_SYS_FSL_CLK
-
 /* USB Configs */
 #define CONFIG_MXC_USB_PORTSC  (PORT_PTS_UTMI | PORT_PTS_PTW)
 #define CONFIG_MXC_USB_FLAGS   0
index 499dbe1..3d50459 100644 (file)
@@ -9,8 +9,6 @@
 
 #define CONFIG_ARMV7_SECURE_BASE OCRAM_BASE_S_ADDR
 
-#define CONFIG_SYS_FSL_CLK
-
 #define CONFIG_SYS_INIT_RAM_ADDR       OCRAM_BASE_ADDR
 #define CONFIG_SYS_INIT_RAM_SIZE       OCRAM_SIZE
 
index 1dfad12..d8ce83b 100644 (file)
@@ -9,8 +9,6 @@
 
 #define CONFIG_ARMV7_SECURE_BASE       OCRAM_BASE_S_ADDR
 
-#define CONFIG_SYS_FSL_CLK
-
 #define CONFIG_DEEP_SLEEP
 
 #define CONFIG_SYS_INIT_RAM_ADDR       OCRAM_BASE_ADDR
index 3773a0a..08fbd72 100644 (file)
@@ -8,8 +8,6 @@
 
 #define CONFIG_ARMV7_SECURE_BASE       OCRAM_BASE_S_ADDR
 
-#define CONFIG_SYS_FSL_CLK
-
 #define CONFIG_DEEP_SLEEP
 
 #define CONFIG_SYS_INIT_RAM_ADDR       OCRAM_BASE_ADDR
index 6fae28e..c5ccaa8 100644 (file)
@@ -9,8 +9,6 @@
 
 #define CONFIG_ARMV7_SECURE_BASE       OCRAM_BASE_S_ADDR
 
-#define CONFIG_SYS_FSL_CLK
-
 #define CONFIG_DEEP_SLEEP
 
 #define CONFIG_SYS_INIT_RAM_ADDR       OCRAM_BASE_ADDR
index 124aab0..c2345e8 100644 (file)
@@ -11,8 +11,6 @@
 
 #include <asm/arch/imx-regs.h>
 
-#define CONFIG_SYS_FSL_CLK
-
 #define CONFIG_TIMESTAMP               /* Print image info with timestamp */
 
 /*
index f1a87fa..fd42d2b 100644 (file)
@@ -12,8 +12,6 @@
 
  /* High Level Configuration Options */
 
-#define CONFIG_SYS_FSL_CLK
-
 #include <asm/arch/imx-regs.h>
 
 /*
index f03e425..16c2241 100644 (file)
@@ -14,8 +14,6 @@
 
 #include <asm/arch/imx-regs.h>
 
-#define CONFIG_SYS_FSL_CLK
-
 #define CONFIG_MXC_UART_BASE UART2_BASE
 
 #define CONFIG_FPGA_COUNT 1
index 92c75f5..a972410 100644 (file)
@@ -11,8 +11,6 @@
 
 #include <asm/arch/imx-regs.h>
 
-#define CONFIG_SYS_FSL_CLK
-
 #define CONFIG_MXC_UART_BASE   UART1_BASE
 
 /* MMC Configs */
index 80487e0..8f8dfe9 100644 (file)
@@ -11,8 +11,6 @@
 
 #include <asm/arch/imx-regs.h>
 
-#define CONFIG_SYS_FSL_CLK
-
 /* USB Configs */
 #define CONFIG_MXC_USB_PORT    1
 #define CONFIG_MXC_USB_PORTSC  (PORT_PTS_UTMI | PORT_PTS_PTW)
index 0ae8305..5ff931e 100644 (file)
@@ -27,8 +27,6 @@
 #include <asm/arch/imx-regs.h>
 #include <asm/mach-imx/gpio.h>
 
-#define CONFIG_SYS_FSL_CLK
-
 /* Miscellaneous configurable options */
 #define CONFIG_SYS_CBSIZE      512
 #define CONFIG_SYS_MAXARGS     32
index ffe8c75..2e976df 100644 (file)
@@ -17,7 +17,6 @@
 #define CONFIG_MXC_GPT_HCLK
 #define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
 #define COUNTER_FREQUENCY CONFIG_SC_TIMER_CLK
-#define CONFIG_SYS_FSL_CLK
 
 #define CONFIG_SYS_BOOTM_LEN   0x1000000
 
index 77da2bf..0faa656 100644 (file)
@@ -10,8 +10,6 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-#define CONFIG_SYS_FSL_CLK
-
 #include <asm/arch/imx-regs.h>
 
 /* U-Boot environment */
index c42db36..d90c2fa 100644 (file)
@@ -11,8 +11,6 @@
 #include <asm/arch/imx-regs.h>
 #include <linux/stringify.h>
 
-#define CONFIG_SYS_FSL_CLK
-
 /* NAND support */
 
 #ifdef CONFIG_CMD_NAND