Skip to contentSkip to conversation

armv8: ls1046ardb: Make NET independent of FMan

PATCH New York Sun 2 participants 6 messages Apr 25, 2017 – May 25, 2017

lore
Share & tools
lore

York Sun

author
#0 lore raw

PATCH 1/2 armv8: ls1046ardb: Make NET independent of FMan

This allows using PCIe NIC without enabling DPAA FMan.

---
 board/freescale/ls1046ardb/Makefile |  2 +-
 include/configs/ls1046ardb.h        | 15 +++++++++------
 2 files changed, 10 insertions(+), 7 deletions(-)
board/freescale/ls1046ardb/Makefile +1 -1
index b92ed0b..4076558 100644
@@ -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
include/configs/ls1046ardb.h +9 -6
index 67ee626..40a5635 100644
@@ -178,18 +178,20 @@
 #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
 
@@ -200,6 +202,7 @@
 
 #define CONFIG_ETHPRIME			"FM1 at DTSEC3"
 #endif
+
 #endif
 
 /* QSPI device */
Signature · 1 line
2.7.4
author
#3 lore raw

PATCH 2/2 armv8: ls1043ardb: Make NET independent of FMan

This allows using PCIe NIC without enabling DPAA FMan.

---
 board/freescale/ls1043ardb/Makefile |  2 +-
 include/configs/ls1043ardb.h        | 13 ++++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)
board/freescale/ls1043ardb/Makefile +1 -1
index 2a4452e..930c690 100644
@@ -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
include/configs/ls1043ardb.h +8 -5
index 5e570cd..5e5d1f6 100644
@@ -250,16 +250,19 @@
 
 /* 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
Signature · 1 line
2.7.4
#4 lore raw

PATCH 2/2 armv8: ls1043ardb: Make NET independent of FMan

Quoted 62 lines

-----Original Message-----
From: York Sun [mailto:york.sun at nxp.com]
Sent: Tuesday, April 25, 2017 11:40 PM
To: u-boot at lists.denx.de
Cc: Mingkai Hu <[email protected]>; york sun <[email protected]>
Subject: [PATCH 2/2] armv8: ls1043ardb: Make NET independent of FMan

This allows using PCIe NIC without enabling DPAA FMan.

---
 board/freescale/ls1043ardb/Makefile |  2 +-
 include/configs/ls1043ardb.h        | 13 ++++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)
board/freescale/ls1043ardb/Makefile +1 -1
index 2a4452e..930c690 100644
@@ -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
include/configs/ls1043ardb.h +3 -3
index 5e570cd..5e5d1f6 100644
@@ -250,16 +250,19 @@
 
 /* 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 */

include/configs/ls1043ardb.h +5 -3
-
 #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
--
Quoted 1 line

2.7.4

ACK.

And Tested-by: Mingkai Hu <[email protected]>

Thanks,
Mingkai

#2 lore raw

PATCH 1/2 armv8: ls1046ardb: Make NET independent of FMan

In reply to York Sun
Quoted 73 lines

-----Original Message-----
From: York Sun [mailto:york.sun at nxp.com]
Sent: Tuesday, April 25, 2017 11:40 PM
To: u-boot at lists.denx.de
Cc: Mingkai Hu <[email protected]>; york sun <[email protected]>
Subject: [PATCH 1/2] armv8: ls1046ardb: Make NET independent of FMan

This allows using PCIe NIC without enabling DPAA FMan.

---
 board/freescale/ls1046ardb/Makefile |  2 +-
 include/configs/ls1046ardb.h        | 15 +++++++++------
 2 files changed, 10 insertions(+), 7 deletions(-)
board/freescale/ls1046ardb/Makefile +1 -1
index b92ed0b..4076558 100644
@@ -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
include/configs/ls1046ardb.h +0 -0
index 67ee626..40a5635 100644
@@ -178,18 +178,20 @@
 #define CONFIG_ENV_SECT_SIZE		0x40000		/*

256KB */
#endif

include/configs/ls1046ardb.h +3 -3
+#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 */

include/configs/ls1046ardb.h +6 -4
-
 #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
@@ -200,6 +202,7 @@
 
 #define CONFIG_ETHPRIME			"FM1 at DTSEC3"
 #endif
+
 #endif
 
 /* QSPI device */
--
Quoted 1 line

2.7.4

ACK.

And Tested-by: Mingkai Hu <[email protected]>

Thanks,
Mingkai

author Applied
#1 lore raw

PATCH 1/2 armv8: ls1046ardb: Make NET independent of FMan

In reply to York Sun
Quoted 8 lines · York Sun

This allows using PCIe NIC without enabling DPAA FMan.

---
 board/freescale/ls1046ardb/Makefile |  2 +-
 include/configs/ls1046ardb.h        | 15 +++++++++------
 2 files changed, 10 insertions(+), 7 deletions(-)

Applied to fsl-qoriq master, awaiting upstream.

York

author Applied
#5 lore raw

PATCH 2/2 armv8: ls1043ardb: Make NET independent of FMan

In reply to York Sun
Quoted 8 lines · York Sun

This allows using PCIe NIC without enabling DPAA FMan.

---
 board/freescale/ls1043ardb/Makefile |  2 +-
 include/configs/ls1043ardb.h        | 13 ++++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

Applied to fsl-qoriq master, awaiting upstream.

York