AT91: Replace AT91_BASE_EMAC by the board specific values.
AT91_BASE_EMAC is never used outside the board specific files, so replace its usage by the board specific AT91xxx_BASE_EMAC. Signed-off-by: Stelian Pop <stelian@popies.net> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
c91e17affa
commit
d8003fa037
@ -237,7 +237,7 @@ int board_eth_init(bd_t *bis)
|
||||
{
|
||||
int rc = 0;
|
||||
#ifdef CONFIG_MACB
|
||||
rc = macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x01);
|
||||
rc = macb_eth_initialize(0, (void *)AT91SAM9260_BASE_EMAC, 0x00);
|
||||
#endif
|
||||
return rc;
|
||||
}
|
||||
|
@ -412,7 +412,7 @@ int board_eth_init(bd_t *bis)
|
||||
{
|
||||
int rc = 0;
|
||||
#ifdef CONFIG_MACB
|
||||
rc = macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x00);
|
||||
rc = macb_eth_initialize(0, (void *)AT91CAP9_BASE_EMAC, 0x00);
|
||||
#endif
|
||||
return rc;
|
||||
}
|
||||
|
@ -255,7 +255,7 @@ int board_eth_init(bd_t *bis)
|
||||
{
|
||||
int rc = 0;
|
||||
#ifdef CONFIG_MACB
|
||||
rc = macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x00);
|
||||
rc = macb_eth_initialize(0, (void *)AT91SAM9260_BASE_EMAC, 0x00);
|
||||
#endif
|
||||
return rc;
|
||||
}
|
||||
|
@ -344,7 +344,7 @@ int board_eth_init(bd_t *bis)
|
||||
{
|
||||
int rc = 0;
|
||||
#ifdef CONFIG_MACB
|
||||
rc = macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x00);
|
||||
rc = macb_eth_initialize(0, (void *)AT91SAM9263_BASE_EMAC, 0x00);
|
||||
#endif
|
||||
return rc;
|
||||
}
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include <asm/arch/at91rm9200.h>
|
||||
#elif defined(CONFIG_AT91SAM9260)
|
||||
#include <asm/arch/at91sam9260.h>
|
||||
#define AT91_BASE_EMAC AT91SAM9260_BASE_EMAC
|
||||
#define AT91_BASE_SPI AT91SAM9260_BASE_SPI0
|
||||
#define AT91_ID_UHP AT91SAM9260_ID_UHP
|
||||
#define AT91_PMC_UHP AT91SAM926x_PMC_UHP
|
||||
@ -31,7 +30,6 @@
|
||||
#define AT91_PMC_UHP AT91SAM926x_PMC_UHP
|
||||
#elif defined(CONFIG_AT91SAM9263)
|
||||
#include <asm/arch/at91sam9263.h>
|
||||
#define AT91_BASE_EMAC AT91SAM9263_BASE_EMAC
|
||||
#define AT91_BASE_SPI AT91SAM9263_BASE_SPI0
|
||||
#define AT91_ID_UHP AT91SAM9263_ID_UHP
|
||||
#define AT91_PMC_UHP AT91SAM926x_PMC_UHP
|
||||
@ -41,7 +39,6 @@
|
||||
#define AT91_ID_UHP AT91SAM9RL_ID_UHP
|
||||
#elif defined(CONFIG_AT91CAP9)
|
||||
#include <asm/arch/at91cap9.h>
|
||||
#define AT91_BASE_EMAC AT91CAP9_BASE_EMAC
|
||||
#define AT91_BASE_SPI AT91CAP9_BASE_SPI0
|
||||
#define AT91_ID_UHP AT91CAP9_ID_UHP
|
||||
#define AT91_PMC_UHP AT91CAP9_PMC_UHP
|
||||
|
Loading…
Reference in New Issue
Block a user