]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/include/asm/arch-omap5/omap.h
OMAP4/5: device: Add support to get the device type.
[karo-tx-uboot.git] / arch / arm / include / asm / arch-omap5 / omap.h
index 7e17c76166274a5a62cd1a3618558f74c9a5c928..27253929699e5cf8f37bfa300495c156a2faa43b 100644 (file)
@@ -136,6 +136,10 @@ struct s32ktimer {
        unsigned int s32k_cr;   /* 0x10 */
 };
 
+#define DEVICE_TYPE_SHIFT 0x6
+#define DEVICE_TYPE_MASK (0x7 << DEVICE_TYPE_SHIFT)
+#define DEVICE_GP 0x3
+
 struct omap_sys_ctrl_regs {
        u32 pad0[77]; /* 0x4A002000 */
        u32 control_status; /* 0x4A002134 */