AT91: Replace AT91_BASE_EMAC by the board specific values.
authorStelian Pop <stelian@popies.net>
Fri, 7 Nov 2008 12:54:31 +0000 (13:54 +0100)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 7 Nov 2008 12:54:31 +0000 (13:54 +0100)
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>
board/afeb9260/afeb9260.c
board/atmel/at91cap9adk/at91cap9adk.c
board/atmel/at91sam9260ek/at91sam9260ek.c
board/atmel/at91sam9263ek/at91sam9263ek.c
include/asm-arm/arch-at91/hardware.h

index e6140ff6f3a456a1187f208817501ed144967dd5..32445ab740e3f74193251e8cdf3a2f0706785352 100644 (file)
@@ -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;
 }
index 88cc4f91c17e74d9fb165917af6e970117599bcd..af145cc7c0c96c2dd796871abed186cd36775db3 100644 (file)
@@ -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;
 }
index 0904827cb220f0ffd728a8fb314a17675940062d..ef99b8b0d51c70977a88fb1a60df34552de7d565 100644 (file)
@@ -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;
 }
index a1f39294e2c2d8d1f6efc5fce591a078bcbaac95..4feed9a52f383b615c9fc95db0b7095474033912 100644 (file)
@@ -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;
 }
index f31241901a3224c88dd24a57efa2c2a9809b86b2..b881e4e2e00186d8256c610e981000e8666043e0 100644 (file)
@@ -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