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
|
@ -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…
Reference in New Issue