Skip to content
Snippets Groups Projects
Commit aa1617e4 authored by Troy Kisky's avatar Troy Kisky
Browse files

mx5: soc: add CONFIG_IIM_MAC_ADDR_INDEX option

parent dda954f2
No related branches found
No related tags found
No related merge requests found
......@@ -79,8 +79,11 @@ void imx_get_mac_from_fuse(int dev_id, unsigned char *mac)
struct fuse_bank1_regs *fuse =
(struct fuse_bank1_regs *)bank->fuse_regs;
#ifndef CONFIG_IIM_MAC_ADDR_INDEX
#define CONFIG_IIM_MAC_ADDR_INDEX 0
#endif
for (i = 0; i < 6; i++)
mac[i] = readl(&fuse->mac_addr[i]) & 0xff;
mac[i] = readl(&fuse->mac_addr[i + CONFIG_IIM_MAC_ADDR_INDEX]) & 0xff;
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment