diff options
author | Dirk Behme <dirk.behme@googlemail.com> | 2009-03-12 19:30:50 +0100 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-03-13 23:17:43 +0100 |
commit | e6a6a704151c2d7e4a7b485545b48a6020ccca17 (patch) | |
tree | c49fa6462c2d8c043919a68e67eed1edff8fa218 /include/asm-arm/arch-omap3/cpu.h | |
parent | 3c92217732edfc0016c3cbdc828471d013d23a36 (diff) | |
download | u-boot-imx-e6a6a704151c2d7e4a7b485545b48a6020ccca17.zip u-boot-imx-e6a6a704151c2d7e4a7b485545b48a6020ccca17.tar.gz u-boot-imx-e6a6a704151c2d7e4a7b485545b48a6020ccca17.tar.bz2 |
OMAP3: Add support for OMAP3 die ID
Read and store OMAP3 die ID in U-Boot environment.
Signed-off-by: Dirk Behme <dirk.behme@googlemail.com>
Diffstat (limited to 'include/asm-arm/arch-omap3/cpu.h')
-rw-r--r-- | include/asm-arm/arch-omap3/cpu.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-arm/arch-omap3/cpu.h b/include/asm-arm/arch-omap3/cpu.h index 5b344f8..c544e0c 100644 --- a/include/asm-arm/arch-omap3/cpu.h +++ b/include/asm-arm/arch-omap3/cpu.h @@ -60,6 +60,19 @@ typedef struct ctrl { #define OMAP3525 0x4c00 #define OMAP3530 0x0c00 +#ifndef __ASSEMBLY__ +typedef struct ctrl_id { + unsigned char res1[0x4]; + unsigned int idcode; /* 0x04 */ + unsigned int prod_id; /* 0x08 */ + unsigned char res2[0x0C]; + unsigned int die_id_0; /* 0x18 */ + unsigned int die_id_1; /* 0x1C */ + unsigned int die_id_2; /* 0x20 */ + unsigned int die_id_3; /* 0x24 */ +} ctrl_id_t; +#endif /* __ASSEMBLY__ */ + /* device type */ #define DEVICE_MASK (0x7 << 8) #define SYSBOOT_MASK 0x1F |