summaryrefslogtreecommitdiff
path: root/board/renesas
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-01-24 21:45:46 -0800
committerTom Rini <trini@konsulko.com>2016-01-25 10:40:00 -0500
commitb3ce90815cee3ba311c2403b9772976daf9ed41c (patch)
tree56aa423afa2f0724fbbba7b7d407fd6d759f089b /board/renesas
parent84b8bf6d5d2a52fb40124c881de162b094ff5cc1 (diff)
downloadu-boot-imx-b3ce90815cee3ba311c2403b9772976daf9ed41c.zip
u-boot-imx-b3ce90815cee3ba311c2403b9772976daf9ed41c.tar.gz
u-boot-imx-b3ce90815cee3ba311c2403b9772976daf9ed41c.tar.bz2
sh: sh7753evb: Fix build error
Currently buildman fails to build sh7753evb and reports the following: board/renesas/sh7753evb/built-in.o: In function 'init_gether_mdio': board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'PMB_ADDR_BASE' board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'PMB_DATA_BASE' board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'mk_pmb_addr_val' board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'mk_pmb_data_val' make: *** [u-boot] Error 1 The fix is to wrap any codes that access these macros with CONFIG_SH_32BIT. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'board/renesas')
-rw-r--r--board/renesas/sh7753evb/sh7753evb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/renesas/sh7753evb/sh7753evb.c b/board/renesas/sh7753evb/sh7753evb.c
index 9f64945..52a1906 100644
--- a/board/renesas/sh7753evb/sh7753evb.c
+++ b/board/renesas/sh7753evb/sh7753evb.c
@@ -113,6 +113,7 @@ static void set_mac_to_sh_giga_eth_register(int channel, char *mac_string)
writel(val, &ether->malr);
}
+#if defined(CONFIG_SH_32BIT)
/*****************************************************************
* This PMB must be set on this timing. The lowlevel_init is run on
* Area 0(phys 0x00000000), so we have to map it.
@@ -154,13 +155,16 @@ static void set_pmb_on_board_init(void)
writel(mk_pmb_addr_val(0x98), PMB_ADDR_BASE(7));
writel(mk_pmb_data_val(0x58, 0, 1, 1, 0, 1, 1), PMB_DATA_BASE(7));
}
+#endif
int board_init(void)
{
struct gether_control_regs *gether = GETHER_CONTROL_BASE;
init_gpio();
+#if defined(CONFIG_SH_32BIT)
set_pmb_on_board_init();
+#endif
/* Sets TXnDLY to B'010 */
writel(0x00000202, &gether->gbecont);