diff options
author | Wolfgang Denk <wd@denx.de> | 2010-12-09 19:52:44 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-12-09 19:52:44 (GMT) |
commit | ac8983bcba75576c50307b5e8dc8fb848740ee61 (patch) | |
tree | e514ad2f915afd2af270d13bce4eb15605887283 /arch/arm/cpu/armv7/mx5 | |
parent | 7ea23555f5d59457f5998b9f61d7b943b2ea6422 (diff) | |
parent | 565e39c57769a45a5eaed5e4c86357e817cf64e1 (diff) | |
download | u-boot-ac8983bcba75576c50307b5e8dc8fb848740ee61.tar.xz |
Merge branch 'master' of git://git.denx.de/u-boot-imx
Diffstat (limited to 'arch/arm/cpu/armv7/mx5')
-rw-r--r-- | arch/arm/cpu/armv7/mx5/soc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx5/soc.c b/arch/arm/cpu/armv7/mx5/soc.c index 7c7a565..2900119 100644 --- a/arch/arm/cpu/armv7/mx5/soc.c +++ b/arch/arm/cpu/armv7/mx5/soc.c @@ -100,6 +100,20 @@ int cpu_eth_init(bd_t *bis) return rc; } +#if defined(CONFIG_FEC_MXC) +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[1]; + struct fuse_bank1_regs *fuse = + (struct fuse_bank1_regs *)bank->fuse_regs; + + for (i = 0; i < 6; i++) + mac[i] = readl(&fuse->mac_addr[i]) & 0xff; +} +#endif + /* * Initializes on-chip MMC controllers. * to override, implement board_mmc_init() |