From 8aeed95626f03dbd9f86101c7f0b0867a71d1680 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sun, 7 Jun 2015 15:26:42 +0200 Subject: [PATCH] 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 --- arch/arm/cpu/armv7/sunxi/board.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5