
On Apr 7, 2011, at 9:56 PM, Andy Fleming wrote:
diff --git a/arch/powerpc/include/asm/config.h b/arch/powerpc/include/asm/config.h index 536f142..31b515e 100644 --- a/arch/powerpc/include/asm/config.h +++ b/arch/powerpc/include/asm/config.h @@ -80,6 +80,13 @@ #endif #endif
+/* The TSEC driver uses the PHYLIB infrastructure */ +#if defined(CONFIG_TSEC_ENET) || defined(CONFIG_FMAN_ENET) +#define CONFIG_PHYLIB
+#include <config_phylib_all_drivers.h> +#endif /* PHYLIB-supporting ethernets */
/* All PPC boards must swap IDE bytes */ #define CONFIG_IDE_SWAP_IO
1. drop CONFIG_FMAN_ENET not in tree yet 2. look at something like:
/* The TSEC driver uses the PHYLIB infrastructure */ #ifndef CONFIG_PHYLIB #if defined(CONFIG_TSEC_ENET) #define CONFIG_PHYLIB
#include <config_phylib_all_drivers.h> #endif #endif /* PHYLIB-supporting ethernets */
this way a board can define CONFIG_PHYLIB and its CONFIG_PHY_xxxx if that is all it wants. Helps reduce code size a bit
- k