From: Hans de Goede Date: Sun, 7 Jun 2015 13:26:42 +0000 (+0200) Subject: sunxi: Request macpwr gpio before using it X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=8aeed95626f03dbd9f86101c7f0b0867a71d1680;p=u-boot.git sunxi: Request macpwr gpio before using it This fixes ethernet no longer working on boards which use a gpio to enable the phy. Signed-off-by: Hans de Goede Acked-by: Ian Campbell --- diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c index a82c8b9d44..4b2494ea37 100644 --- a/arch/arm/cpu/armv7/sunxi/board.c +++ b/arch/arm/cpu/armv7/sunxi/board.c @@ -223,6 +223,7 @@ int cpu_eth_init(bd_t *bis) __maybe_unused int rc; #ifdef CONFIG_MACPWR + gpio_request(CONFIG_MACPWR, "macpwr"); gpio_direction_output(CONFIG_MACPWR, 1); mdelay(200); #endif