Skip to contentSkip to conversation

net/ppc4xx: Rework 4xx non NET_MULTI MII init code

PATCH New Stefan Roese 2 participants 2 messages Jul 30, 2008 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 net/ppc4xx: Rework 4xx non NET_MULTI MII init code

This patch simplifies the 4xx MII PHY init code by introducing the define CONFIG_PPC4xx_EMAC for EMAC enabled SoC's.

---
This is post 1.3.4 material.

Ben, could you please queue this up and push it in the next merge window? If nobody objects of course.

 net/eth.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
net/eth.c +1 -2
index 38979aa..77a8500 100644
@@ -620,8 +620,7 @@ int eth_initialize(bd_t *bis)
 #if defined(CONFIG_AT91RM9200)
 	at91rm9200_miiphy_initialize(bis);
 #endif
-#if defined(CONFIG_4xx) && !defined(CONFIG_IOP480) \
-	&& !defined(CONFIG_AP1000) && !defined(CONFIG_405)
+#if defined(CONFIG_PPC4xx_EMAC)
 	emac4xx_miiphy_initialize(bis);
 #endif
 #if defined(CONFIG_MCF52x2)
Signature · 1 line
1.5.6.4
#1 lore raw

PATCH 1/2 net/ppc4xx: Rework 4xx non NET_MULTI MII init code

Quoted 10 lines · Stefan Roese

This patch simplifies the 4xx MII PHY init code by introducing the define CONFIG_PPC4xx_EMAC for EMAC enabled SoC's.

---
This is post 1.3.4 material.

Ben, could you please queue this up and push it in the next merge window? If nobody objects of course.

Will do. I'll try to get to it tonight (early morning now). Thanks, I was about to rant about growing conditional non-compilation, but you saved everybody.

cheers,
Ben