> -----Original Message----- > From: [email protected] [mailto:u-boot- > [email protected]] On Behalf Of Luke Lowrey > Sent: 25 June 2012 22:07 > To: [email protected] > Subject: [U-Boot] [PATCH] arch-kirkwood: Ethernet port macro returning > incorrect address > > 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 <[email protected]> > --- > arch/arm/include/asm/arch-kirkwood/cpu.h | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/include/asm/arch-kirkwood/cpu.h > b/arch/arm/include/asm/arch-kirkwood/cpu.h > index d28c51a..784ba87 100644 > --- a/arch/arm/include/asm/arch-kirkwood/cpu.h > +++ b/arch/arm/include/asm/arch-kirkwood/cpu.h > @@ -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) > --
Acked-by: Prafulla Wadaskar <[email protected]> Regards.. Prafulla . . . _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

