summaryrefslogtreecommitdiff
path: root/lib/time.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-11-16 21:10:41 +0300
committerTom Rini <trini@konsulko.com>2022-12-06 00:06:08 +0300
commit65cc0e2a65d2c9f107b2f42db6396d9ade6c5ad8 (patch)
treee1b9902c5257875fc5fe8243e1e759594f90beed /lib/time.c
parenta322afc9f9b69dd52a9bc72937cd5adc18ea55c7 (diff)
downloadu-boot-65cc0e2a65d2c9f107b2f42db6396d9ade6c5ad8.tar.xz
global: Move remaining CONFIG_SYS_* to CFG_SYS_*
The rest of the unmigrated CONFIG symbols in the CONFIG_SYS namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/time.c')
-rw-r--r--lib/time.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/time.c b/lib/time.c
index f3aaf472d1..82350260ea 100644
--- a/lib/time.c
+++ b/lib/time.c
@@ -25,21 +25,21 @@
DECLARE_GLOBAL_DATA_PTR;
-#ifdef CONFIG_SYS_TIMER_RATE
+#ifdef CFG_SYS_TIMER_RATE
/* Returns tick rate in ticks per second */
ulong notrace get_tbclk(void)
{
- return CONFIG_SYS_TIMER_RATE;
+ return CFG_SYS_TIMER_RATE;
}
#endif
-#ifdef CONFIG_SYS_TIMER_COUNTER
+#ifdef CFG_SYS_TIMER_COUNTER
unsigned long notrace timer_read_counter(void)
{
#ifdef CONFIG_SYS_TIMER_COUNTS_DOWN
- return ~readl(CONFIG_SYS_TIMER_COUNTER);
+ return ~readl(CFG_SYS_TIMER_COUNTER);
#else
- return readl(CONFIG_SYS_TIMER_COUNTER);
+ return readl(CFG_SYS_TIMER_COUNTER);
#endif
}
@@ -47,8 +47,8 @@ ulong timer_get_boot_us(void)
{
ulong count = timer_read_counter();
-#ifdef CONFIG_SYS_TIMER_RATE
- const ulong timer_rate = CONFIG_SYS_TIMER_RATE;
+#ifdef CFG_SYS_TIMER_RATE
+ const ulong timer_rate = CFG_SYS_TIMER_RATE;
if (timer_rate == 1000000)
return count;