[PoC 061/241] global: Migrate CONFIG_ICS307_REFCLK_HZ to CFG

Tom Rini trini at konsulko.com
Sun Nov 20 14:30:52 CET 2022


Signed-off-by: Tom Rini <trini at konsulko.com>
---
 board/freescale/common/ics307_clk.c | 4 ++--
 include/configs/T208xQDS.h          | 2 +-
 include/configs/T208xRDB.h          | 2 +-
 include/configs/T4240RDB.h          | 2 +-
 scripts/config_whitelist.txt        | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/board/freescale/common/ics307_clk.c b/board/freescale/common/ics307_clk.c
index 01662d36e9fb..5f95571d24cc 100644
--- a/board/freescale/common/ics307_clk.c
+++ b/board/freescale/common/ics307_clk.c
@@ -50,7 +50,7 @@ static u8 ics307_s_to_od[] = {
  */
 unsigned long ics307_sysclk_calculator(unsigned long out_freq)
 {
-	const unsigned long input_freq = CONFIG_ICS307_REFCLK_HZ;
+	const unsigned long input_freq = CFG_ICS307_REFCLK_HZ;
 	unsigned long vdw, rdw, odp, s_vdw = 0, s_rdw = 0, s_odp = 0, od;
 	unsigned long tmp_out, diff, result = 0;
 	int found = 0;
@@ -101,7 +101,7 @@ unsigned long ics307_sysclk_calculator(unsigned long out_freq)
  */
 static unsigned long ics307_clk_freq(u8 cw0, u8 cw1, u8 cw2)
 {
-	const unsigned long input_freq = CONFIG_ICS307_REFCLK_HZ;
+	const unsigned long input_freq = CFG_ICS307_REFCLK_HZ;
 	unsigned long vdw = ((cw1 << 1) & 0x1FE) + ((cw2 >> 7) & 1);
 	unsigned long rdw = cw2 & 0x7F;
 	unsigned long od = ics307_s_to_od[cw0 & 0x7];
diff --git a/include/configs/T208xQDS.h b/include/configs/T208xQDS.h
index 0d245940dc0e..c614a539b391 100644
--- a/include/configs/T208xQDS.h
+++ b/include/configs/T208xQDS.h
@@ -13,7 +13,7 @@
 
 #include <linux/stringify.h>
 
-#define CONFIG_ICS307_REFCLK_HZ 25000000  /* ICS307 ref clk freq */
+#define CFG_ICS307_REFCLK_HZ 25000000  /* ICS307 ref clk freq */
 
 /* High Level Configuration Options */
 
diff --git a/include/configs/T208xRDB.h b/include/configs/T208xRDB.h
index 28c59b4e66f8..2da4f5a09b14 100644
--- a/include/configs/T208xRDB.h
+++ b/include/configs/T208xRDB.h
@@ -13,7 +13,7 @@
 
 #include <linux/stringify.h>
 
-#define CONFIG_ICS307_REFCLK_HZ 25000000  /* ICS307 ref clk freq */
+#define CFG_ICS307_REFCLK_HZ 25000000  /* ICS307 ref clk freq */
 
 /* High Level Configuration Options */
 
diff --git a/include/configs/T4240RDB.h b/include/configs/T4240RDB.h
index 640c12d91ab5..b8bfc52f07ae 100644
--- a/include/configs/T4240RDB.h
+++ b/include/configs/T4240RDB.h
@@ -12,7 +12,7 @@
 
 #include <linux/stringify.h>
 
-#define CONFIG_ICS307_REFCLK_HZ		25000000  /* ICS307 ref clk freq */
+#define CFG_ICS307_REFCLK_HZ		25000000  /* ICS307 ref clk freq */
 
 #ifdef CONFIG_RAMBOOT_PBL
 #ifndef CONFIG_SDCARD
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index e507dca614f5..9516ba848bfc 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -63,7 +63,7 @@ CFG_I2C_MVTWSI
 CFG_I2C_MVTWSI_BASE0
 CFG_I2C_MVTWSI_BASE1
 CFG_I2C_RTC_ADDR
-CONFIG_ICS307_REFCLK_HZ
+CFG_ICS307_REFCLK_HZ
 CONFIG_IMX6_PWM_PER_CLK
 CONFIG_IPADDR
 CONFIG_IRAM_BASE
-- 
2.25.1



More information about the U-Boot mailing list