Skip to contentSkip to conversation

powerpc/t104xrdb: Add basic ethernet support

PATCH New Priyanka Jain 2 participants 2 messages Jan 30, 2014 – Feb 3, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 powerpc/t104xrdb: Add basic ethernet support

This covers only non-L2 switch ethernet interfaces i.e. RGMII and SGMII interface for both
-T1040RDB
-T1042RDB_PI

T1040RDB is configured as serdes protocol 0x66 which can support following interfaces
-2 RGMIIS on DTSEC4, DTSEC5
-1 SGMII on DTSEC3

T1042RDB_PI is configured as serdes protocol 0x06 which can support following interfaces
-2 RGMIIS on DTSEC4, DTSEC5

---
Changes for v2:
Initialized phy_addr to remove compilation warning.

 board/freescale/t104xrdb/Makefile |    1 +
 board/freescale/t104xrdb/eth.c    |   72 +++++++++++++++++++++++++++++++++++++
 include/configs/T1040RDB.h        |    9 ++---
 include/configs/T1042RDB_PI.h     |    5 ++-
 4 files changed, 81 insertions(+), 6 deletions(-)
 create mode 100644 board/freescale/t104xrdb/eth.c
board/freescale/t104xrdb/Makefile +1 -0
index 76c0c94..e51fb7a 100644
@@ -7,6 +7,7 @@
 
 obj-y	+= t104xrdb.o
 obj-y	+= ddr.o
+obj-y	+= eth.o
 obj-$(CONFIG_PCI)	+= pci.o
 obj-y	+= law.o
 obj-y	+= tlb.o
board/freescale/t104xrdb/eth.c new file +72 -0

72 lines not on this page · raw message

include/configs/T1040RDB.h +4 -5
index 8784eac..de2df51 100644
@@ -547,13 +547,12 @@
 #endif
 
 #ifdef CONFIG_FMAN_ENET
-#define CONFIG_SYS_FM1_DTSEC1_RISER_PHY_ADDR    0x1c
-#define CONFIG_SYS_FM1_DTSEC2_RISER_PHY_ADDR    0x1d
-#define CONFIG_SYS_FM1_DTSEC3_RISER_PHY_ADDR    0x1e
-#define CONFIG_SYS_FM1_DTSEC4_RISER_PHY_ADDR    0x1f
+#define CONFIG_SYS_SGMII1_PHY_ADDR		0x03
+#define CONFIG_SYS_RGMII1_PHY_ADDR		0x01
+#define CONFIG_SYS_RGMII2_PHY_ADDR		0x02
 
 #define CONFIG_MII		/* MII PHY management */
-#define CONFIG_ETHPRIME		"FM1 at DTSEC1"
+#define CONFIG_ETHPRIME		"FM1 at DTSEC4"
 #define CONFIG_PHY_GIGE		/* Include GbE speed/duplex detection */
 #endif
 
include/configs/T1042RDB_PI.h +4 -1
index cd18de5..c5c9a23 100644
@@ -553,8 +553,11 @@
 #endif
 
 #ifdef CONFIG_FMAN_ENET
+#define CONFIG_SYS_RGMII1_PHY_ADDR		0x01
+#define CONFIG_SYS_RGMII2_PHY_ADDR		0x02
+
 #define CONFIG_MII		/* MII PHY management */
-#define CONFIG_ETHPRIME		"FM1 at DTSEC1"
+#define CONFIG_ETHPRIME		"FM1@DTSEC4"
 #define CONFIG_PHY_GIGE		/* Include GbE speed/duplex detection */
 #endif
 
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH v2 1/1 powerpc/t104xrdb: Add basic ethernet support

Quoted 15 lines · Priyanka Jain

This covers only non-L2 switch ethernet interfaces i.e. RGMII and SGMII interface for both

(quoted diff) +0 -2
-T1040RDB
-T1042RDB_PI

T1040RDB is configured as serdes protocol 0x66 which can support following interfaces
-2 RGMIIS on DTSEC4, DTSEC5
-1 SGMII on DTSEC3

T1042RDB_PI is configured as serdes protocol 0x06 which can support following interfaces
-2 RGMIIS on DTSEC4, DTSEC5

Quoted 7 lines

---
Changes for v2:
Initialized phy_addr to remove compilation warning.

Applied to u-boot-mpc85xx master branch.

York