From: Ian Campbell Date: Sun, 07 Jun 2015 17:04:24 +0100 Subject: [U-Boot] [PATCH] sunxi: Request macpwr gpio before using it In-Reply-To: <1433689170-9554-1-git-send-email-hdegoede@redhat.com> References: <1433689170-9554-1-git-send-email-hdegoede@redhat.com> Message-ID: <1433693064.3342.50.camel@hellion.org.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, 2015-06-07 at 16:59 +0200, Hans de Goede wrote: > This fixes ethernet no longer working on boards which use a gpio to enable > the phy. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell > --- > arch/arm/cpu/armv7/sunxi/board.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c > index 215551f..bd0d819 100644 > --- a/arch/arm/cpu/armv7/sunxi/board.c > +++ b/arch/arm/cpu/armv7/sunxi/board.c > @@ -241,6 +241,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