summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/arm926ejs/mx25
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-12-09 20:52:44 +0100
committerWolfgang Denk <wd@denx.de>2010-12-09 20:52:44 +0100
commitac8983bcba75576c50307b5e8dc8fb848740ee61 (patch)
treee514ad2f915afd2af270d13bce4eb15605887283 /arch/arm/cpu/arm926ejs/mx25
parent7ea23555f5d59457f5998b9f61d7b943b2ea6422 (diff)
parent565e39c57769a45a5eaed5e4c86357e817cf64e1 (diff)
downloadu-boot-imx-ac8983bcba75576c50307b5e8dc8fb848740ee61.zip
u-boot-imx-ac8983bcba75576c50307b5e8dc8fb848740ee61.tar.gz
u-boot-imx-ac8983bcba75576c50307b5e8dc8fb848740ee61.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-imx
Diffstat (limited to 'arch/arm/cpu/arm926ejs/mx25')
-rw-r--r--arch/arm/cpu/arm926ejs/mx25/generic.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/mx25/generic.c b/arch/arm/cpu/arm926ejs/mx25/generic.c
index b80a389..c6e1146 100644
--- a/arch/arm/cpu/arm926ejs/mx25/generic.c
+++ b/arch/arm/cpu/arm926ejs/mx25/generic.c
@@ -260,4 +260,16 @@ void mx25_fec_init_pins (void)
writel (outpadctl, &padctl->pad_fec_tdata1);
}
+
+void imx_get_mac_from_fuse(unsigned char *mac)
+{
+ int i;
+ struct iim_regs *iim = (struct iim_regs *)IMX_IIM_BASE;
+ struct fuse_bank *bank = &iim->bank[0];
+ struct fuse_bank0_regs *fuse =
+ (struct fuse_bank0_regs *)bank->fuse_regs;
+
+ for (i = 0; i < 6; i++)
+ mac[i] = readl(&fuse->mac_addr[i]) & 0xff;
+}
#endif /* CONFIG_FEC_MXC */