mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 23:37:01 +00:00
sunxi: Add CONFIG_MACPWR option
On some boards the ethernet-phy needs to be powered up through a gpio, add support for this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
This commit is contained in:
parent
0061e46462
commit
fc70300136
1 changed files with 5 additions and 0 deletions
|
@ -129,6 +129,11 @@ int cpu_eth_init(bd_t *bis)
|
|||
{
|
||||
__maybe_unused int rc;
|
||||
|
||||
#ifdef CONFIG_MACPWR
|
||||
gpio_direction_output(CONFIG_MACPWR, 1);
|
||||
mdelay(200);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SUNXI_EMAC
|
||||
rc = sunxi_emac_initialize(bis);
|
||||
if (rc < 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue