[PATCH] iim/imx25: fix MAC and UID offsets
Baruch Siach
baruch at tkos.co.il
Tue Aug 17 04:01:21 EDT 2010
IIM_UID and IIM_MAC_ADDR are now fixed addresses.
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
This should be applied on top of the "imx: support for the IIM fusebox" series.
arch/arm/mach-imx/imx25.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-imx/imx25.c b/arch/arm/mach-imx/imx25.c
index 760f740..e73f8ee 100644
--- a/arch/arm/mach-imx/imx25.c
+++ b/arch/arm/mach-imx/imx25.c
@@ -44,13 +44,13 @@ u64 imx_uid(void)
* values in IIM are big-endian as per AN3682.
*/
for (i = 0; i < 8; i++)
- uid |= (u64)readb(IMX_IIM_BASE + IIM_UID + i*4) << (i*8);
+ uid |= (u64)readb(IIM_UID + i*4) << (i*8);
return uid;
}
static struct imx_iim_platform_data imx25_iim_pdata = {
- .mac_addr_base = IMX_IIM_BASE + IIM_MAC_ADDR,
+ .mac_addr_base = IIM_MAC_ADDR,
};
static struct device_d imx25_iim_dev = {
--
1.7.1
More information about the barebox
mailing list