OMAP4/5: device: Add support to get the device type.
[kernel/u-boot.git] / arch / arm / include / asm / arch-omap4 / omap.h
index 5fd692f..3a39787 100644 (file)
@@ -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 */