mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 05:04:23 +08:00
avr32:grasshopper: fix PHY initialisation
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
This commit is contained in:
parent
4398d55991
commit
eba00ab405
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user