]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv8: ls1046ardb: Make NET independent of FMan
authorYork Sun <york.sun@nxp.com>
Tue, 25 Apr 2017 15:39:51 +0000 (08:39 -0700)
committerYork Sun <york.sun@nxp.com>
Tue, 23 May 2017 16:23:52 +0000 (09:23 -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/ls1046ardb/Makefile
include/configs/ls1046ardb.h

index b92ed0b3ec4d22119a716876ff4922fd2164353e..4076558089953cb12d99608566acee3840c1fb05 100644 (file)
@@ -7,6 +7,6 @@
 obj-y += ddr.o
 obj-y += ls1046ardb.o
 ifndef CONFIG_SPL_BUILD
-obj-$(CONFIG_SYS_DPAA_FMAN) += eth.o
+obj-$(CONFIG_NET) += eth.o
 obj-y += cpld.o
 endif
index 66af0397896e42de8b26ed9f94816cfcbe3ca1af..7161ee8dd4898197dd653560bb7b453bdddc24f3 100644 (file)
 #define CONFIG_ENV_SECT_SIZE           0x40000         /* 256KB */
 #endif
 
+#define AQR105_IRQ_MASK                        0x80000000
 /* FMan */
 #ifndef SPL_NO_FMAN
-#ifdef CONFIG_SYS_DPAA_FMAN
-#define CONFIG_FMAN_ENET
+
+#ifdef CONFIG_NET
 #define CONFIG_PHYLIB
-#define CONFIG_PHYLIB_10G
 #define CONFIG_PHY_GIGE                /* Include GbE speed/duplex detection */
-
 #define CONFIG_PHY_REALTEK
-#define CONFIG_PHY_AQUANTIA
-#define AQR105_IRQ_MASK                        0x80000000
+#endif
 
+#ifdef CONFIG_SYS_DPAA_FMAN
+#define CONFIG_FMAN_ENET
+#define CONFIG_PHY_AQUANTIA
+#define CONFIG_PHYLIB_10G
 #define RGMII_PHY1_ADDR                        0x1
 #define RGMII_PHY2_ADDR                        0x2
 
 
 #define CONFIG_ETHPRIME                        "FM1@DTSEC3"
 #endif
+
 #endif
 
 /* QSPI device */