|
@@ -78,6 +78,14 @@ static inline int is_omap ##class (void) \
|
|
return (GET_OMAP_CLASS == (id)) ? 1 : 0; \
|
|
return (GET_OMAP_CLASS == (id)) ? 1 : 0; \
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#define GET_AM_CLASS ((omap_rev() >> 24) & 0xff)
|
|
|
|
+
|
|
|
|
+#define IS_AM_CLASS(class, id) \
|
|
|
|
+static inline int is_am ##class (void) \
|
|
|
|
+{ \
|
|
|
|
+ return (GET_AM_CLASS == (id)) ? 1 : 0; \
|
|
|
|
+}
|
|
|
|
+
|
|
#define GET_OMAP_SUBCLASS ((omap_rev() >> 20) & 0x0fff)
|
|
#define GET_OMAP_SUBCLASS ((omap_rev() >> 20) & 0x0fff)
|
|
|
|
|
|
#define IS_OMAP_SUBCLASS(subclass, id) \
|
|
#define IS_OMAP_SUBCLASS(subclass, id) \
|
|
@@ -92,12 +100,19 @@ static inline int is_ti ##subclass (void) \
|
|
return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; \
|
|
return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; \
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#define IS_AM_SUBCLASS(subclass, id) \
|
|
|
|
+static inline int is_am ##subclass (void) \
|
|
|
|
+{ \
|
|
|
|
+ return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; \
|
|
|
|
+}
|
|
|
|
+
|
|
IS_OMAP_CLASS(7xx, 0x07)
|
|
IS_OMAP_CLASS(7xx, 0x07)
|
|
IS_OMAP_CLASS(15xx, 0x15)
|
|
IS_OMAP_CLASS(15xx, 0x15)
|
|
IS_OMAP_CLASS(16xx, 0x16)
|
|
IS_OMAP_CLASS(16xx, 0x16)
|
|
IS_OMAP_CLASS(24xx, 0x24)
|
|
IS_OMAP_CLASS(24xx, 0x24)
|
|
IS_OMAP_CLASS(34xx, 0x34)
|
|
IS_OMAP_CLASS(34xx, 0x34)
|
|
IS_OMAP_CLASS(44xx, 0x44)
|
|
IS_OMAP_CLASS(44xx, 0x44)
|
|
|
|
+IS_AM_CLASS(33xx, 0x33)
|
|
|
|
|
|
IS_OMAP_SUBCLASS(242x, 0x242)
|
|
IS_OMAP_SUBCLASS(242x, 0x242)
|
|
IS_OMAP_SUBCLASS(243x, 0x243)
|
|
IS_OMAP_SUBCLASS(243x, 0x243)
|
|
@@ -107,6 +122,7 @@ IS_OMAP_SUBCLASS(443x, 0x443)
|
|
IS_OMAP_SUBCLASS(446x, 0x446)
|
|
IS_OMAP_SUBCLASS(446x, 0x446)
|
|
|
|
|
|
IS_TI_SUBCLASS(816x, 0x816)
|
|
IS_TI_SUBCLASS(816x, 0x816)
|
|
|
|
+IS_AM_SUBCLASS(335x, 0x335)
|
|
|
|
|
|
#define cpu_is_omap7xx() 0
|
|
#define cpu_is_omap7xx() 0
|
|
#define cpu_is_omap15xx() 0
|
|
#define cpu_is_omap15xx() 0
|
|
@@ -117,6 +133,8 @@ IS_TI_SUBCLASS(816x, 0x816)
|
|
#define cpu_is_omap34xx() 0
|
|
#define cpu_is_omap34xx() 0
|
|
#define cpu_is_omap343x() 0
|
|
#define cpu_is_omap343x() 0
|
|
#define cpu_is_ti816x() 0
|
|
#define cpu_is_ti816x() 0
|
|
|
|
+#define cpu_is_am33xx() 0
|
|
|
|
+#define cpu_is_am335x() 0
|
|
#define cpu_is_omap44xx() 0
|
|
#define cpu_is_omap44xx() 0
|
|
#define cpu_is_omap443x() 0
|
|
#define cpu_is_omap443x() 0
|
|
#define cpu_is_omap446x() 0
|
|
#define cpu_is_omap446x() 0
|
|
@@ -323,6 +341,8 @@ IS_OMAP_TYPE(3517, 0x3517)
|
|
# undef cpu_is_omap3505
|
|
# undef cpu_is_omap3505
|
|
# undef cpu_is_omap3517
|
|
# undef cpu_is_omap3517
|
|
# undef cpu_is_ti816x
|
|
# undef cpu_is_ti816x
|
|
|
|
+# undef cpu_is_am33xx
|
|
|
|
+# undef cpu_is_am335x
|
|
# define cpu_is_omap3430() is_omap3430()
|
|
# define cpu_is_omap3430() is_omap3430()
|
|
# define cpu_is_omap3503() (cpu_is_omap3430() && \
|
|
# define cpu_is_omap3503() (cpu_is_omap3430() && \
|
|
(!omap3_has_iva()) && \
|
|
(!omap3_has_iva()) && \
|
|
@@ -340,6 +360,8 @@ IS_OMAP_TYPE(3517, 0x3517)
|
|
# undef cpu_is_omap3630
|
|
# undef cpu_is_omap3630
|
|
# define cpu_is_omap3630() is_omap363x()
|
|
# define cpu_is_omap3630() is_omap363x()
|
|
# define cpu_is_ti816x() is_ti816x()
|
|
# define cpu_is_ti816x() is_ti816x()
|
|
|
|
+# define cpu_is_am33xx() is_am33xx()
|
|
|
|
+# define cpu_is_am335x() is_am335x()
|
|
#endif
|
|
#endif
|
|
|
|
|
|
# if defined(CONFIG_ARCH_OMAP4)
|
|
# if defined(CONFIG_ARCH_OMAP4)
|
|
@@ -386,6 +408,9 @@ IS_OMAP_TYPE(3517, 0x3517)
|
|
#define TI8168_REV_ES1_0 TI816X_CLASS
|
|
#define TI8168_REV_ES1_0 TI816X_CLASS
|
|
#define TI8168_REV_ES1_1 (TI816X_CLASS | (0x1 << 8))
|
|
#define TI8168_REV_ES1_1 (TI816X_CLASS | (0x1 << 8))
|
|
|
|
|
|
|
|
+#define AM335X_CLASS 0x33500034
|
|
|
|
+#define AM335X_REV_ES1_0 AM335X_CLASS
|
|
|
|
+
|
|
#define OMAP443X_CLASS 0x44300044
|
|
#define OMAP443X_CLASS 0x44300044
|
|
#define OMAP4430_REV_ES1_0 (OMAP443X_CLASS | (0x10 << 8))
|
|
#define OMAP4430_REV_ES1_0 (OMAP443X_CLASS | (0x10 << 8))
|
|
#define OMAP4430_REV_ES2_0 (OMAP443X_CLASS | (0x20 << 8))
|
|
#define OMAP4430_REV_ES2_0 (OMAP443X_CLASS | (0x20 << 8))
|