diff options
| author | Hans de Goede <[email protected]> | 2015-06-07 15:26:42 +0200 |
|---|---|---|
| committer | Hans de Goede <[email protected]> | 2015-06-10 16:52:12 +0200 |
| commit | 8aeed95626f03dbd9f86101c7f0b0867a71d1680 (patch) | |
| tree | 9e69a6e4e7c09524e119cd537bae3b9d983c3821 | |
| parent | 3d0158ae18bef2ac89979f4c90419d3add436c71 (diff) | |
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 <[email protected]>
Acked-by: Ian Campbell <[email protected]>
| -rw-r--r-- | arch/arm/cpu/armv7/sunxi/board.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c index a82c8b9d446..4b2494ea376 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 |
