]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: ls1043ardb: Make NET independent of FMan
authorYork Sun <york.sun@nxp.com>
Tue, 25 Apr 2017 15:39:52 +0000 (08:39 -0700)
committerYork Sun <york.sun@nxp.com>
Tue, 23 May 2017 16:24:43 +0000 (09:24 -0700)
This allows using PCIe NIC without enabling DPAA FMan.

Signed-off-by: York Sun <york.sun@nxp.com>
CC: Mingkai Hu <mingkai.hu@nxp.com>
Acked-by: Mingkai Hu <mingkai.hu@nxp.com>
board/freescale/ls1043ardb/Makefile
include/configs/ls1043ardb.h

index 2a4452e5ec138cf33d74667c1e00ab1c1291666f..930c69032e03ef3ae04889ebe3018376a0e64999 100644 (file)
@@ -7,6 +7,6 @@
 obj-y += ddr.o
 obj-y += ls1043ardb.o
 ifndef CONFIG_SPL_BUILD
-obj-$(CONFIG_SYS_DPAA_FMAN) += eth.o
+obj-$(CONFIG_NET) += eth.o
 obj-y += cpld.o
 endif
index 5e570cd5e8d70ef23133d9efee09c7d808661b53..5e5d1f647cc42a8ffbb86a2457a6a6232fb7782d 100644 (file)
 
 /* FMan */
 #ifndef SPL_NO_FMAN
-#ifdef CONFIG_SYS_DPAA_FMAN
-#define CONFIG_FMAN_ENET
+#define AQR105_IRQ_MASK                        0x40000000
+
+#ifdef CONFIG_NET
 #define CONFIG_PHYLIB
-#define CONFIG_PHYLIB_10G
 #define CONFIG_PHY_GIGE                /* Include GbE speed/duplex detection */
-
 #define CONFIG_PHY_VITESSE
 #define CONFIG_PHY_REALTEK
+#endif
+
+#ifdef CONFIG_SYS_DPAA_FMAN
+#define CONFIG_FMAN_ENET
+#define CONFIG_PHYLIB_10G
 #define CONFIG_PHY_AQUANTIA
-#define AQR105_IRQ_MASK                        0x40000000
 
 #define RGMII_PHY1_ADDR                        0x1
 #define RGMII_PHY2_ADDR                        0x2