]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
AFEB9260 network fix
authorSergey Lapin <slapin@ossfans.org>
Tue, 12 May 2009 08:25:14 +0000 (12:25 +0400)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Tue, 12 May 2009 23:17:17 +0000 (01:17 +0200)
AFEB9260 uses PA10, PA11 for ETX2 and ETX3.
Also, due to extarnal pull-up on IRQ line, Micrel PHY ID is 1 after reset sequence,
not 0.

Signed-off-by: Sergey Lapin <slapin@ossfans.org>
board/afeb9260/afeb9260.c
cpu/arm926ejs/at91/at91sam9260_macb.c

index 024db2bbe0f595df274b4011a738c3b9155d2157..a247663bb4b0d404f3464d02a4b68d0c65e345d3 100644 (file)
@@ -177,7 +177,7 @@ int board_eth_init(bd_t *bis)
 {
        int rc = 0;
 #ifdef CONFIG_MACB
-       rc = macb_eth_initialize(0, (void *)AT91SAM9260_BASE_EMAC, 0x00);
+       rc = macb_eth_initialize(0, (void *)AT91SAM9260_BASE_EMAC, 0x01);
 #endif
        return rc;
 }
index ab60fb7d9bbf34f6c0fdeea072680122ae1ffafb..ea5e767ebecd5ce75a449845cd9cc315ec3b183e 100644 (file)
@@ -47,7 +47,7 @@ void at91_macb_hw_init(void)
        at91_set_B_periph(AT91_PIN_PA25, 0);    /* ERX2 */
        at91_set_B_periph(AT91_PIN_PA26, 0);    /* ERX3 */
        at91_set_B_periph(AT91_PIN_PA27, 0);    /* ERXCK */
-#if defined(CONFIG_AT91SAM9260EK)
+#if defined(CONFIG_AT91SAM9260EK) || defined(CONFIG_AFEB9260)
        /*
         * use PA10, PA11 for ETX2, ETX3.
         * PA23 and PA24 are for TWI EEPROM