summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-12-04 10:04:11 -0500
committerTom Rini <trini@konsulko.com>2022-12-23 10:10:40 -0500
commitcdbf8459d017143dba1e798fecbd1046f98a7ece (patch)
treed9d68b9bdb5b67fe0efbb4f4720123993b00fda5 /board/freescale
parent35661f86eb0e647953d6a588059d1387b5be5ae5 (diff)
downloadu-boot-cdbf8459d017143dba1e798fecbd1046f98a7ece.tar.gz
global: Migrate CONFIG_ICS307_REFCLK_HZ to CFG
Perform a simple rename of CONFIG_ICS307_REFCLK_HZ to CFG_ICS307_REFCLK_HZ Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/common/ics307_clk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/freescale/common/ics307_clk.c b/board/freescale/common/ics307_clk.c
index 01662d36e9..5f95571d24 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];