mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-22 15:42:04 +00:00
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 <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
This commit is contained in:
parent
3d0158ae18
commit
8aeed95626
1 changed files with 1 additions and 0 deletions
|
@ -223,6 +223,7 @@ int cpu_eth_init(bd_t *bis)
|
||||||
__maybe_unused int rc;
|
__maybe_unused int rc;
|
||||||
|
|
||||||
#ifdef CONFIG_MACPWR
|
#ifdef CONFIG_MACPWR
|
||||||
|
gpio_request(CONFIG_MACPWR, "macpwr");
|
||||||
gpio_direction_output(CONFIG_MACPWR, 1);
|
gpio_direction_output(CONFIG_MACPWR, 1);
|
||||||
mdelay(200);
|
mdelay(200);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue