Re: [U-Boot] [PATCH 4/7] sunxi: Add CONFIG_MACPWR option

2014-07-28 Thread Ian Campbell
On Sun, 2014-07-27 at 23:25 +0200, Hans de Goede wrote: On some boards the phy needs to be powered up through a gpio, add support for this. I assume from the context that this is the Ethernet PHY? I'm a bit surprised there isn't some sort of de facto existing naming etc for something like

Re: [U-Boot] [PATCH 4/7] sunxi: Add CONFIG_MACPWR option

2014-07-28 Thread thomas.langer
Hello Hans, Hans de Goede wrote onĀ 2014-07-27: On some boards the phy needs to be powered up through a gpio, add support for this. @@ -129,6 +129,11 @@ int cpu_eth_init(bd_t *bis) { __maybe_unused int rc; +#ifdef CONFIG_MACPWR If this is powering a phy, maybe CONFIG_PHYPWR or

Re: [U-Boot] [PATCH 4/7] sunxi: Add CONFIG_MACPWR option

2014-07-28 Thread Hans de Goede
Hi, On 07/28/2014 10:09 AM, thomas.lan...@lantiq.com wrote: Hello Hans, Hans de Goede wrote on 2014-07-27: On some boards the phy needs to be powered up through a gpio, add support for this. @@ -129,6 +129,11 @@ int cpu_eth_init(bd_t *bis) { __maybe_unused int rc; +#ifdef

[U-Boot] [PATCH 4/7] sunxi: Add CONFIG_MACPWR option

2014-07-27 Thread Hans de Goede
On some boards the phy needs to be powered up through a gpio, add support for this. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/board.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c