projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d0158a
)
sunxi: Request macpwr gpio before using it
author
Hans de Goede
<hdegoede@redhat.com>
Sun, 7 Jun 2015 13:26:42 +0000
(15:26 +0200)
committer
Hans de Goede
<hdegoede@redhat.com>
Wed, 10 Jun 2015 14:52:12 +0000
(16:52 +0200)
This fixes ethernet no longer working on boards which use a gpio to enable
the phy.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/cpu/armv7/sunxi/board.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/sunxi/board.c
b/arch/arm/cpu/armv7/sunxi/board.c
index a82c8b9d4460cd1ccc43d30b8a179e6f6e6ecfb3..4b2494ea376defaeba5b5108170a097cb1be7ea4 100644
(file)
--- 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