summaryrefslogtreecommitdiff
path: root/include/configs/legoev3.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-12-14 13:36:39 -0500
committerTom Rini <trini@konsulko.com>2021-12-27 16:20:18 -0500
commite4c3ce7e2845d75dc1696b2875bb632993a9c51c (patch)
tree092fa1c26bdbbb3a5bfd6176ae780c1be2c17fe2 /include/configs/legoev3.h
parent0abfcf2fd3067c2622261fbdecdf2a4461f5ac8c (diff)
CONFIG_SYS_CLK_FREQ: Consistently be static or get_board_sys_clk()
This CONFIG option is used in one of two ways. The first way is that it is defined to a static value, of an unsigned long size. The second way is that it is defined to something, typically a function, to determine this value at run time. However, in a few cases that function returns a static value. Change that to using the static value directly. In the case of using something at run time, convert everything to using a function of the same name and prototype. This will allow for further cleanups. Finally, we have a few cases where the function is just not used, so drop it. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/configs/legoev3.h')
-rw-r--r--include/configs/legoev3.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/configs/legoev3.h b/include/configs/legoev3.h
index 0e4d134dbdc..21ba9b8da8c 100644
--- a/include/configs/legoev3.h
+++ b/include/configs/legoev3.h
@@ -17,8 +17,11 @@
/*
* SoC Configuration
*/
+#ifndef __ASSEMBLY__
+unsigned long get_board_sys_clk(void);
+#endif
#define CONFIG_SYS_EXCEPTION_VECTORS_HIGH
-#define CONFIG_SYS_CLK_FREQ clk_get(DAVINCI_ARM_CLKID)
+#define CONFIG_SYS_CLK_FREQ get_board_sys_clk()
#define CONFIG_SYS_OSCIN_FREQ 24000000
#define CONFIG_SYS_TIMERBASE DAVINCI_TIMER0_BASE
#define CONFIG_SYS_HZ_CLOCK clk_get(DAVINCI_AUXCLK_CLKID)