]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tsec: Fix MDIO on devices with eTSEC2
authorAndy Fleming <afleming@freescale.com>
Fri, 29 Apr 2011 07:26:52 +0000 (02:26 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 29 Apr 2011 12:32:48 +0000 (07:32 -0500)
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.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
include/tsec.h

index 8ed30aca09b312c911f185d6e160a48a446ca00e..f0f3d4d59b54ceba1a270e1c5f2a5bdc3c8f8302 100644 (file)
@@ -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"