]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
PowerPC: phy: enable all phylib drivers when use phylib and tsec enet
authorZhao Qiang <qiang.zhao@nxp.com>
Wed, 7 Feb 2018 02:01:56 +0000 (10:01 +0800)
committerYork Sun <york.sun@nxp.com>
Fri, 9 Feb 2018 16:35:59 +0000 (08:35 -0800)
config_phylib_all_drivers.h should be included when CONFIG_PHYLIB and
CONFIG_TSEC_ENET are defined.

Fixes: 3146f0c017 ("Move PHYLIB to Kconfig")
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/powerpc/include/asm/config.h

index 67e4b48a96aac7a04b712f57318d7befa830977c..39eeb39901de7c1a32f2e31356e177a1bb6fbf01 100644 (file)
 #endif
 
 /* The TSEC driver uses the PHYLIB infrastructure */
-#ifndef CONFIG_PHYLIB
-#if defined(CONFIG_TSEC_ENET)
+#if defined(CONFIG_TSEC_ENET) && defined(CONFIG_PHYLIB)
 #include <config_phylib_all_drivers.h>
 #endif /* TSEC_ENET */
-#endif /* !CONFIG_PHYLIB */
 
 /* The FMAN driver uses the PHYLIB infrastructure */