summaryrefslogtreecommitdiff
path: root/board/armltd
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 /board/armltd
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 'board/armltd')
-rw-r--r--board/armltd/integrator/timer.c14
-rw-r--r--board/armltd/vexpress64/vexpress64.c4
2 files changed, 9 insertions, 9 deletions
diff --git a/board/armltd/integrator/timer.c b/board/armltd/integrator/timer.c
index d220b877d6..9db5135a8f 100644
--- a/board/armltd/integrator/timer.c
+++ b/board/armltd/integrator/timer.c
@@ -41,10 +41,10 @@ static unsigned long long div_clock = DIV_CLOCK_INIT;
static unsigned long long div_timer = 1; /* Divisor to convert timer reading
* change to U-Boot ticks
*/
-/* CONFIG_SYS_HZ = CONFIG_SYS_HZ_CLOCK/(div_clock * div_timer) */
+/* CONFIG_SYS_HZ = CFG_SYS_HZ_CLOCK/(div_clock * div_timer) */
static ulong timestamp; /* U-Boot ticks since startup */
-#define READ_TIMER (*(volatile ulong *)(CONFIG_SYS_TIMERBASE+4))
+#define READ_TIMER (*(volatile ulong *)(CFG_SYS_TIMERBASE+4))
/* all function return values in U-Boot ticks i.e. (1/CONFIG_SYS_HZ) sec
* - unless otherwise stated
@@ -55,7 +55,7 @@ static ulong timestamp; /* U-Boot ticks since startup */
int timer_init (void)
{
/* Load timer with initial value */
- *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 0) = TIMER_LOAD_VAL;
+ *(volatile ulong *)(CFG_SYS_TIMERBASE + 0) = TIMER_LOAD_VAL;
#ifdef CONFIG_ARCH_CINTEGRATOR
/* Set timer to be
* enabled 1
@@ -66,7 +66,7 @@ int timer_init (void)
* 32 bit 1
* wrapping 0
*/
- *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 8) = 0x000000C2;
+ *(volatile ulong *)(CFG_SYS_TIMERBASE + 8) = 0x000000C2;
#else
/* Set timer to be
* enabled 1
@@ -75,7 +75,7 @@ int timer_init (void)
* divider 256 10
* XX 00
*/
- *(volatile ulong *)(CONFIG_SYS_TIMERBASE + 8) = 0x00000088;
+ *(volatile ulong *)(CFG_SYS_TIMERBASE + 8) = 0x00000088;
#endif
/* init the timestamp */
@@ -85,7 +85,7 @@ int timer_init (void)
/* start "advancing" time stamp from 0 */
timestamp = 0L;
- div_timer = CONFIG_SYS_HZ_CLOCK;
+ div_timer = CFG_SYS_HZ_CLOCK;
do_div(div_timer, CONFIG_SYS_HZ);
do_div(div_timer, div_clock);
@@ -156,7 +156,7 @@ unsigned long long get_ticks(void)
*/
ulong get_tbclk(void)
{
- unsigned long long tmp = CONFIG_SYS_HZ_CLOCK;
+ unsigned long long tmp = CFG_SYS_HZ_CLOCK;
do_div(tmp, div_clock);
diff --git a/board/armltd/vexpress64/vexpress64.c b/board/armltd/vexpress64/vexpress64.c
index af326dc6f4..4ca544f101 100644
--- a/board/armltd/vexpress64/vexpress64.c
+++ b/board/armltd/vexpress64/vexpress64.c
@@ -108,7 +108,7 @@ unsigned long __section(".data") prior_stage_fdt_address[2];
#define JUNO_FLASH_SEC_SIZE (256 * 1024)
static phys_addr_t find_dtb_in_nor_flash(const char *partname)
{
- phys_addr_t sector = CONFIG_SYS_FLASH_BASE;
+ phys_addr_t sector = CFG_SYS_FLASH_BASE;
int i;
for (i = 0;
@@ -140,7 +140,7 @@ static phys_addr_t find_dtb_in_nor_flash(const char *partname)
imginfo = sector + JUNO_FLASH_SEC_SIZE - 0x30 - reg;
reg = readl(imginfo + 0x54);
- return CONFIG_SYS_FLASH_BASE +
+ return CFG_SYS_FLASH_BASE +
reg * JUNO_FLASH_SEC_SIZE;
}
}