summaryrefslogtreecommitdiff
path: root/board/cadence/xtfpga/xtfpga.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-12-05 21:04:24 -0500
committerTom Rini <trini@konsulko.com>2022-12-05 21:04:24 -0500
commitd2ad92927ea91ab8cece92a308350602c594dd3e (patch)
tree23ec41dc6f0aff10b800c69396a32ac5ac926817 /board/cadence/xtfpga/xtfpga.c
parent1c470f32f74248ff4aa145bf033fb6524dc7fc2e (diff)
parent7102d324f6b41741ee74587d43d77b302b1bbd96 (diff)
Merge branch '2022-12-05-Kconfig-migrations-and-renames' into next
- First batch of the patches that end up with scripts/config_whitelist.tx being empty. Mostly migrations and a little bit of code removal and CFG renaming.
Diffstat (limited to 'board/cadence/xtfpga/xtfpga.c')
-rw-r--r--board/cadence/xtfpga/xtfpga.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/cadence/xtfpga/xtfpga.c b/board/cadence/xtfpga/xtfpga.c
index ade7f9d120a..f38f5564a06 100644
--- a/board/cadence/xtfpga/xtfpga.c
+++ b/board/cadence/xtfpga/xtfpga.c
@@ -58,8 +58,8 @@ unsigned long get_board_sys_clk(void)
* else non-zero (hang).
*/
-#ifdef CONFIG_SYS_FPGAREG_FREQ
- return (*(volatile unsigned long *)CONFIG_SYS_FPGAREG_FREQ);
+#ifdef CFG_SYS_FPGAREG_FREQ
+ return (*(volatile unsigned long *)CFG_SYS_FPGAREG_FREQ);
#else
/* early Tensilica bitstreams lack this reg, but most run at 50 MHz */
return 50000000;
@@ -90,7 +90,7 @@ int misc_init_r(void)
if (s == 0) {
unsigned int x;
char s[] = __stringify(CONFIG_ETHBASE);
- x = (*(volatile u32 *)CONFIG_SYS_FPGAREG_DIPSW)
+ x = (*(volatile u32 *)CFG_SYS_FPGAREG_DIPSW)
& FPGAREG_MAC_MASK;
sprintf(&s[15], "%02x", x);
env_set("ethaddr", s);
@@ -106,9 +106,9 @@ U_BOOT_DRVINFO(sysreset) = {
static struct ethoc_eth_pdata ethoc_pdata = {
.eth_pdata = {
- .iobase = CONFIG_SYS_ETHOC_BASE,
+ .iobase = CFG_SYS_ETHOC_BASE,
},
- .packet_base = CONFIG_SYS_ETHOC_BUFFER_ADDR,
+ .packet_base = CFG_SYS_ETHOC_BUFFER_ADDR,
};
U_BOOT_DRVINFO(ethoc) = {