summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-omap4/omap.h
diff options
context:
space:
mode:
authorSRICHARAN R <r.sricharan@ti.com>2012-03-12 02:25:43 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-05-15 08:31:24 +0200
commitc1fa3c37af7b99ba80f232a84f6b84e90f481f06 (patch)
treeb780b18e75564ebf674abbddd91aad4d308724c8 /arch/arm/include/asm/arch-omap4/omap.h
parent002a2c0c66d2e1757b89ad6824b4a472dcef1076 (diff)
downloadu-boot-imx-c1fa3c37af7b99ba80f232a84f6b84e90f481f06.zip
u-boot-imx-c1fa3c37af7b99ba80f232a84f6b84e90f481f06.tar.gz
u-boot-imx-c1fa3c37af7b99ba80f232a84f6b84e90f481f06.tar.bz2
OMAP4/5: device: Add support to get the device type.
Add support to identify the device as GP/EMU/HS. Signed-off-by: R Sricharan <r.sricharan@ti.com>
Diffstat (limited to 'arch/arm/include/asm/arch-omap4/omap.h')
-rw-r--r--arch/arm/include/asm/arch-omap4/omap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-omap4/omap.h b/arch/arm/include/asm/arch-omap4/omap.h
index 5fd692f..3a39787 100644
--- a/arch/arm/include/asm/arch-omap4/omap.h
+++ b/arch/arm/include/asm/arch-omap4/omap.h
@@ -139,6 +139,10 @@ struct s32ktimer {
unsigned int s32k_cr; /* 0x10 */
};
+#define DEVICE_TYPE_SHIFT (0x8)
+#define DEVICE_TYPE_MASK (0x7 << DEVICE_TYPE_SHIFT)
+#define DEVICE_GP 0x3
+
struct omap_sys_ctrl_regs {
unsigned int pad1[129];
unsigned int control_id_code; /* 0x4A002204 */