Skip to contentSkip to conversation

tsec: Fix MDIO on devices with eTSEC2

PATCH New Andy Fleming 3 participants 3 messages Apr 29, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tsec: Fix MDIO on devices with eTSEC2

The tsec driver was defining the default MDIO address as the TSEC_BASE + 0x520, but on eTSEC2 controllers, the first TSEC's registers are separated from the MDIO registers. Use the existing MDIO_BASE_ADDR, instead.

---
 include/tsec.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/tsec.h +1 -1
index 8ed30ac..f0f3d4d 100644
@@ -25,7 +25,7 @@
 #define TSEC_SIZE 		0x01000
 #define TSEC_MDIO_OFFSET	0x01000
 
-#define CONFIG_SYS_MDIO_BASE_ADDR (TSEC_BASE_ADDR + 0x520)
+#define CONFIG_SYS_MDIO_BASE_ADDR (MDIO_BASE_ADDR + 0x520)
 
 #define DEFAULT_MII_NAME "FSL_MDIO"
 
Signature · 1 line
1.6.5.2.g6ff9a
Applied
#1 lore raw

PATCH 1/1 tsec: Fix MDIO on devices with eTSEC2

Quoted 9 lines · Andy Fleming

The tsec driver was defining the default MDIO address as the TSEC_BASE + 0x520, but on eTSEC2 controllers, the first TSEC's registers are separated from the MDIO registers. Use the existing MDIO_BASE_ADDR, instead.

---
include/tsec.h | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

applied to 85xx

- k

#2 lore raw

PATCH 1/1 tsec: Fix MDIO on devices with eTSEC2

In reply to Andy Fleming
Quoted 6 lines · Andy Fleming

The tsec driver was defining the default MDIO address as the TSEC_BASE + 0x520, but on eTSEC2 controllers, the first TSEC's registers are separated from the MDIO registers. Use the existing MDIO_BASE_ADDR, instead.

This fixes Ethernet on the P1022DS.

Signature · 2 lines
Timur Tabi
Linux kernel developer at Freescale