]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global: Migrate CONFIG_ICS307_REFCLK_HZ to CFG
authorTom Rini <trini@konsulko.com>
Sun, 4 Dec 2022 15:04:11 +0000 (10:04 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 23 Dec 2022 15:10:40 +0000 (10:10 -0500)
Perform a simple rename of CONFIG_ICS307_REFCLK_HZ to CFG_ICS307_REFCLK_HZ

Signed-off-by: Tom Rini <trini@konsulko.com>
board/freescale/common/ics307_clk.c
include/configs/T208xQDS.h
include/configs/T208xRDB.h
include/configs/T4240RDB.h

index 01662d36e9fb99d13b88676d0980966f5e789994..5f95571d24cc0e6879ba5852cedf2c94864ed644 100644 (file)
@@ -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];
index 7f332cf2e3beb31c219df9a59d17a85eee400774..3b98d25aa47ab712aee581efba0a28a1aa545ac3 100644 (file)
@@ -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 */
 
index d6dd9c07b73f26c917a1fc6bbb1815a3d97c13f1..60c2947bfc1dba41a47be7f8a30655b522c5d05f 100644 (file)
@@ -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 */
 
index 22cbf92efb8011f2cc2adc85d2ab347f11493540..01a9f43cbaeb455e3e125e87f825f314287c64b1 100644 (file)
@@ -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