]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Add cpu_class_is_omap1() and cpu_class_is_omap2() macros
authorTony Lindgren <tony@atomide.com>
Fri, 28 Oct 2005 00:19:06 +0000 (03:19 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 28 Oct 2005 00:19:06 +0000 (03:19 +0300)
Add cpu_class_is_omap1() and cpu_class_is_omap2() macros

include/asm-arm/arch-omap/cpu.h

index 04d4874d0132b843ce7358b9370bbd58290ee409..fbca3a9484b8bdf42ab56c8e5cd35fb7c6c10f42 100644 (file)
@@ -215,4 +215,9 @@ IS_OMAP_TYPE(2420, 0x2420)
 #  define cpu_is_omap2420()            1
 #endif
 
+/* Macros to detect if we have OMAP1 or OMAP2 */
+#define cpu_class_is_omap1()   (cpu_is_omap730() || cpu_is_omap15xx() || \
+                               cpu_is_omap16xx())
+#define cpu_class_is_omap2()   cpu_is_omap24xx()
+
 #endif