arch-kirkwood: Ethernet port macro returning incorrect address
authorLuke Lowrey <luke@chamsys.co.uk>
Mon, 25 Jun 2012 06:37:09 +0000 (06:37 +0000)
committerPrafulla Wadaskar <prafulla@marvell.com>
Tue, 8 Jan 2013 22:42:11 +0000 (04:12 +0530)
Modified the arch-kirkwood header so KWGBE_PORT_SERIAL_CONTROL1_REG(x)
returns the correct address.

Originally calling KWGBE_PORT_SERIAL_CONTROL1_REG(1) returned the
address for port 0 and vice versa.

Doesn't have any knock on effects to the u-boot code as the only
time they're used is to do the same function to both addresses

Signed-off-by: Luke Lowrey <luke@chamsys.co.uk>
Acked-by: Prafulla Wadaskar <Prafulla@marvell.com>
Acked-by: Heiko Schocher <hs@denx.de>
arch/arm/include/asm/arch-kirkwood/cpu.h

index 57bfe8e78b1081ed9e627335ad6e8619d9b93ebd..009a6bb8f3f2cd4af353ef56e2bf68938f9538ac 100644 (file)
@@ -33,7 +33,7 @@
                        | (attr << 8) | (kw_winctrl_calcsize(size) << 16))
 
 #define KWGBE_PORT_SERIAL_CONTROL1_REG(_x)     \
-               ((_x ? KW_EGIGA0_BASE : KW_EGIGA1_BASE) + 0x44c)
+               ((_x ? KW_EGIGA1_BASE : KW_EGIGA0_BASE) + 0x44c)
 
 #define KW_REG_PCIE_DEVID              (KW_REG_PCIE_BASE + 0x00)
 #define KW_REG_PCIE_REVID              (KW_REG_PCIE_BASE + 0x08)