summaryrefslogtreecommitdiffstats
path: root/board/in-circuit
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas.devel@googlemail.com>2012-05-25 12:29:32 +0200
committerAndreas Bießmann <andreas.devel@googlemail.com>2012-06-04 09:21:20 +0200
commiteba00ab4050bd1b39f20ed1186181ab727085bfc (patch)
tree8c546b2e55d9d80715003032aad2cd0696931377 /board/in-circuit
parent4398d55991eb3c2484a2a8e991d701e5d7a64874 (diff)
downloadblackbird-obmc-uboot-eba00ab4050bd1b39f20ed1186181ab727085bfc.tar.gz
blackbird-obmc-uboot-eba00ab4050bd1b39f20ed1186181ab727085bfc.zip
avr32:grasshopper: fix PHY initialisation
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'board/in-circuit')
-rw-r--r--board/in-circuit/grasshopper/grasshopper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/in-circuit/grasshopper/grasshopper.c b/board/in-circuit/grasshopper/grasshopper.c
index 475a759b7a..222fe43958 100644
--- a/board/in-circuit/grasshopper/grasshopper.c
+++ b/board/in-circuit/grasshopper/grasshopper.c
@@ -72,6 +72,13 @@ int board_early_init_f(void)
portmux_enable_usart0(PORTMUX_DRIVE_MIN);
portmux_enable_usart1(PORTMUX_DRIVE_MIN);
#if defined(CONFIG_MACB)
+ /* set PHY reset and pwrdown to low */
+ portmux_select_gpio(PORTMUX_PORT_B, (1 << 29) | (1 << 30),
+ PORTMUX_DIR_OUTPUT | PORTMUX_INIT_LOW);
+ udelay(100);
+ /* release PHYs reset */
+ gpio_set_value(GPIO_PIN_PB(29), 1);
+
portmux_enable_macb0(PORTMUX_MACB_MII, PORTMUX_DRIVE_LOW);
#endif
OpenPOWER on IntegriCloud