diff mbox

[v3,04/16] Davinci: cpu class macros

Message ID 1271270702-28307-5-git-send-email-cyril@ti.com (mailing list archive)
State Changes Requested
Headers show

Commit Message

Cyril Chemparathy April 14, 2010, 6:44 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-davinci/include/mach/cputype.h b/arch/arm/mach-davinci/include/mach/cputype.h
index cea6b89..0bc6996 100644
--- a/arch/arm/mach-davinci/include/mach/cputype.h
+++ b/arch/arm/mach-davinci/include/mach/cputype.h
@@ -91,4 +91,17 @@  IS_DAVINCI_CPU(tnetv107x, DAVINCI_CPU_ID_TNETV107X)
 #define cpu_is_davinci_tnetv107x() 0
 #endif
 
+#define cpu_class_is_dmx()		\
+	(cpu_is_davinci_dm644x() ||	\
+	 cpu_is_davinci_dm646x() ||	\
+	 cpu_is_davinci_dm355()  ||	\
+	 cpu_is_davinci_dm365())
+
+#define cpu_class_is_da8xx()		\
+	(cpu_is_davinci_da830()	||	\
+	 cpu_is_davinci_da850())
+
+#define cpu_class_is_tnetv107x()	\
+	(cpu_is_davinci_tnetv107x())
+
 #endif