From 12bf710a2f6d1aa1122628c11bb16fbd502b36d7 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Fri, 28 Oct 2005 03:19:06 +0300 Subject: [PATCH] ARM: OMAP: Add cpu_class_is_omap1() and cpu_class_is_omap2() macros Add cpu_class_is_omap1() and cpu_class_is_omap2() macros --- include/asm-arm/arch-omap/cpu.h | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.41.1