aboutsummaryrefslogtreecommitdiff
path: root/board/cadence/xtfpga/xtfpga.c
diff options
context:
space:
mode:
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 ade7f9d120..f38f5564a0 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) = {