avr32: fixup definitions to ATMEL_BASE_xxx
Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
This commit is contained in:
committed by
Albert ARIBAUD
parent
5d73bc7af7
commit
f4278b716c
@@ -112,8 +112,8 @@ int board_early_init_r(void)
|
||||
#ifdef CONFIG_CMD_NET
|
||||
int board_eth_init(bd_t *bi)
|
||||
{
|
||||
macb_eth_initialize(0, (void *)MACB0_BASE, bi->bi_phy_id[0]);
|
||||
macb_eth_initialize(1, (void *)MACB1_BASE, bi->bi_phy_id[1]);
|
||||
macb_eth_initialize(0, (void *)ATMEL_BASE_MACB0, bi->bi_phy_id[0]);
|
||||
macb_eth_initialize(1, (void *)ATMEL_BASE_MACB1, bi->bi_phy_id[1]);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -134,8 +134,8 @@ int board_early_init_r(void)
|
||||
#ifdef CONFIG_CMD_NET
|
||||
int board_eth_init(bd_t *bi)
|
||||
{
|
||||
macb_eth_initialize(0, (void *)MACB0_BASE, bi->bi_phy_id[0]);
|
||||
macb_eth_initialize(1, (void *)MACB1_BASE, bi->bi_phy_id[1]);
|
||||
macb_eth_initialize(0, (void *)ATMEL_BASE_MACB0, bi->bi_phy_id[0]);
|
||||
macb_eth_initialize(1, (void *)ATMEL_BASE_MACB1, bi->bi_phy_id[1]);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -104,6 +104,7 @@ int board_early_init_r(void)
|
||||
#if defined(CONFIG_MACB) && defined(CONFIG_CMD_NET)
|
||||
int board_eth_init(bd_t *bi)
|
||||
{
|
||||
return macb_eth_initialize(0, (void *)MACB0_BASE, bi->bi_phy_id[0]);
|
||||
return macb_eth_initialize(0, (void *)ATMEL_BASE_MACB0,
|
||||
bi->bi_phy_id[0]);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -221,8 +221,8 @@ void spi_cs_deactivate(struct spi_slave *slave)
|
||||
#ifdef CONFIG_CMD_NET
|
||||
int board_eth_init(bd_t *bi)
|
||||
{
|
||||
macb_eth_initialize(0, (void *)MACB0_BASE, bi->bi_phy_id[0]);
|
||||
macb_eth_initialize(1, (void *)MACB1_BASE, bi->bi_phy_id[1]);
|
||||
macb_eth_initialize(0, (void *)ATMEL_BASE_MACB0, bi->bi_phy_id[0]);
|
||||
macb_eth_initialize(1, (void *)ATMEL_BASE_MACB1, bi->bi_phy_id[1]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -68,7 +68,8 @@ static const struct sdram_config sdram_config = {
|
||||
#ifdef CONFIG_CMD_NET
|
||||
int board_eth_init(bd_t *bis)
|
||||
{
|
||||
return macb_eth_initialize(0, (void *)MACB0_BASE, bis->bi_phy_id[0]);
|
||||
return macb_eth_initialize(0, (void *)ATMEL_BASE_MACB0,
|
||||
bis->bi_phy_id[0]);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user