diff options
author | Anatolij Gustschin <agust@denx.de> | 2008-07-09 23:15:10 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-13 12:41:45 (GMT) |
commit | 17bd17071463b0cde391ac4a0863d600474b4ea1 (patch) | |
tree | 04784a525522a4cd3c8ee156dda0eb9e4e671aa0 /board | |
parent | a07351fdbad1a92746d75a195eaef25d146c7f87 (diff) | |
download | u-boot-17bd17071463b0cde391ac4a0863d600474b4ea1.tar.xz |
at91: Fix to enable using Teridian MII phy (78Q21x3) with at91sam9260
On the at91sam9260ep development board there is an EEPROM
connected to the TWI interface (PA23, PA24 Peripheral A
multiplexing), so we cannot use these pins as ETX2, ETX3.
This patch configures PA10, PA11 pins for ETX2, ETX3
instead of PA23, PA24 pins.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Manuel Sahm <Manuel.Sahm@feig.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/atmel/at91sam9260ek/at91sam9260ek.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/atmel/at91sam9260ek/at91sam9260ek.c b/board/atmel/at91sam9260ek/at91sam9260ek.c index 836a0c4..06d8512 100644 --- a/board/atmel/at91sam9260ek/at91sam9260ek.c +++ b/board/atmel/at91sam9260ek/at91sam9260ek.c @@ -188,8 +188,17 @@ static void at91sam9260ek_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) + /* + * use PA10, PA11 for ETX2, ETX3. + * PA23 and PA24 are for TWI EEPROM + */ + at91_set_B_periph(AT91_PIN_PA10, 0); /* ETX2 */ + at91_set_B_periph(AT91_PIN_PA11, 0); /* ETX3 */ +#else at91_set_B_periph(AT91_PIN_PA23, 0); /* ETX2 */ at91_set_B_periph(AT91_PIN_PA24, 0); /* ETX3 */ +#endif at91_set_B_periph(AT91_PIN_PA22, 0); /* ETXER */ #endif |