From: Tony Lindgren Date: Fri, 28 Oct 2005 00:19:06 +0000 (+0300) Subject: ARM: OMAP: Add cpu_class_is_omap1() and cpu_class_is_omap2() macros X-Git-Tag: v2.6.15-omap2~125 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=12bf710a2f6d1aa1122628c11bb16fbd502b36d7;p=linux-2.6-omap-h63xx.git ARM: OMAP: Add cpu_class_is_omap1() and cpu_class_is_omap2() macros Add cpu_class_is_omap1() and cpu_class_is_omap2() macros --- diff --git a/include/asm-arm/arch-omap/cpu.h b/include/asm-arm/arch-omap/cpu.h index 04d4874d013..fbca3a9484b 100644 --- a/include/asm-arm/arch-omap/cpu.h +++ b/include/asm-arm/arch-omap/cpu.h @@ -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