summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-mx25
diff options
context:
space:
mode:
authorLiu Hui-R64343 <r64343@freescale.com>2010-11-18 23:45:55 +0000
committerStefano Babic <sbabic@denx.de>2010-11-21 18:24:20 +0100
commit565e39c57769a45a5eaed5e4c86357e817cf64e1 (patch)
tree25d23788174cf199097d47052d3ae50b01b872aa /arch/arm/include/asm/arch-mx25
parenta676cca41d52a89d9e3841170880e1234ec45606 (diff)
downloadu-boot-imx-565e39c57769a45a5eaed5e4c86357e817cf64e1.zip
u-boot-imx-565e39c57769a45a5eaed5e4c86357e817cf64e1.tar.gz
u-boot-imx-565e39c57769a45a5eaed5e4c86357e817cf64e1.tar.bz2
imx: Get fec mac address from fuse
The patch is to support getting FEC MAC address from fuse bank. Signed-off-by: Jason Liu <r64343@freescale.com> Tested-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/include/asm/arch-mx25')
-rw-r--r--arch/arm/include/asm/arch-mx25/imx-regs.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/arch/arm/include/asm/arch-mx25/imx-regs.h b/arch/arm/include/asm/arch-mx25/imx-regs.h
index f5a2929..55ad115 100644
--- a/arch/arm/include/asm/arch-mx25/imx-regs.h
+++ b/arch/arm/include/asm/arch-mx25/imx-regs.h
@@ -36,6 +36,7 @@
#ifndef __ASSEMBLY__
#ifdef CONFIG_FEC_MXC
extern void mx25_fec_init_pins(void);
+extern void imx_get_mac_from_fuse(unsigned char *mac);
#endif
/* Clock Control Module (CCM) registers */
@@ -129,12 +130,17 @@ struct iim_regs {
u32 iim_srev;
u32 iim_prog_p;
u32 res1[0x1f5];
- u32 iim_bank_area0[0x20];
- u32 res2[0xe0];
- u32 iim_bank_area1[0x20];
- u32 res3[0xe0];
- u32 iim_bank_area2[0x20];
+ struct fuse_bank {
+ u32 fuse_regs[0x20];
+ u32 fuse_rsvd[0xe0];
+ } bank[3];
};
+
+struct fuse_bank0_regs {
+ u32 fuse0_25[0x1a];
+ u32 mac_addr[6];
+};
+
#endif
/* AIPS 1 */
@@ -312,7 +318,4 @@ struct iim_regs {
#define WSR_UNLOCK1 0x5555
#define WSR_UNLOCK2 0xAAAA
-/* FUSE bank offsets */
-#define IIM0_MAC 0x1a
-
#endif /* _IMX_REGS_H */