aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-omap4/cpu.h
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2011-07-24 23:24:26 -0600
committerJohn Rigby <john.rigby@linaro.org>2011-08-15 15:23:59 -0600
commit324688f1788a4b9a7ecf738c065ddcde2e9a7b95 (patch)
tree67ac45e1b4e49d888ab9d9081fb80d05a622091e /arch/arm/include/asm/arch-omap4/cpu.h
parent7b9973b6fb16cee1298a27fa203bd27248c318ef (diff)
downloadu-boot-linaro-stable-324688f1788a4b9a7ecf738c065ddcde2e9a7b95.tar.gz
OMAP4 Ppanda: jenerate 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/asm/arch-omap4/cpu.h')
-rw-r--r--arch/arm/include/asm/arch-omap4/cpu.h12
1 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 08b9c9935..f80701c76 100644
--- a/arch/arm/include/asm/arch-omap4/cpu.h
+++ b/arch/arm/include/asm/arch-omap4/cpu.h
@@ -94,6 +94,18 @@ 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 */