aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2011-12-16 15:50:05 -0700
committerJohn Rigby <john.rigby@linaro.org>2012-08-16 10:08:03 -0600
commit0470e3db0c6ddfba370b3eb383585cfe8a2d8aad (patch)
treeb2cab3ad708b0dff8f03593f900a4707fe64b672 /arch/arm/include
parent03e97daa2e5a2aa681d6e3f007c623e7e86d0551 (diff)
downloadu-boot-linaro-stable-0470e3db0c6ddfba370b3eb383585cfe8a2d8aad.tar.gz
OMAP4 Panda: Generate a unique usbethaddr
The panda board has a usb nic but the nic has no rom. Use the die-id to generate a unique address. This is derived from an RFC kernel patch by Andy Green that does the same thing: https://patchwork.kernel.org/patch/660541/ [RFC PATCH 1/2] OMAP2+: add cpu id register to MAC address helper Signed-off-by: John Rigby <john.rigby@linaro.org>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/arch-omap4/cpu.h11
-rw-r--r--arch/arm/include/asm/arch-omap4/sys_proto.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-omap4/cpu.h b/arch/arm/include/asm/arch-omap4/cpu.h
index a8c4c60c8..9b5c0a802 100644
--- a/arch/arm/include/asm/arch-omap4/cpu.h
+++ b/arch/arm/include/asm/arch-omap4/cpu.h
@@ -94,6 +94,17 @@ struct gptimer {
u32 tcicr; /* 0x40 rw */
u32 tcar2; /* 0x44 r */
};
+
+struct ctrl_id {
+ u32 die_id_0; /* 0x00 */
+ u32 idcode; /* 0x04 */
+ u32 die_id_1; /* 0x08 */
+ u32 die_id_2; /* 0x0c */
+ u32 die_id_3; /* 0x10 */
+ u32 prod_id_0; /* 0x14 */
+ u32 prod_id_1; /* 0x18 */
+};
+
#endif /* __ASSEMBLY__ */
#endif /* __KERNEL_STRICT_NAMES */
diff --git a/arch/arm/include/asm/arch-omap4/sys_proto.h b/arch/arm/include/asm/arch-omap4/sys_proto.h
index d633573c2..1294ce479 100644
--- a/arch/arm/include/asm/arch-omap4/sys_proto.h
+++ b/arch/arm/include/asm/arch-omap4/sys_proto.h
@@ -59,6 +59,7 @@ void omap_vc_init(u16 speed_khz);
int omap_vc_bypass_send_value(u8 sa, u8 reg_addr, u8 reg_data);
u32 warm_reset(void);
void force_emif_self_refresh(void);
+void omap4_die_id_to_ethernet_mac(u8 *, int);
/*
* This is used to verify if the configuration header
* was executed by Romcode prior to control of transfer