blob: fa7a408614c84862f58718f1dc4daadf1a110560 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef __ASM_ARCH_OMAP_CPU_H
13#define __ASM_ARCH_OMAP_CPU_H
14
15#define omap2_cpu_rev() ((system_rev >> 8) & 0x0f)
16
17#undef MULTI_OMAP1
18#undef MULTI_OMAP2
19#undef OMAP_NAME
20
21#define GET_OMAP_CLASS (system_rev & 0xff)
22
23#define IS_OMAP_CLASS(class, id) static inline int is_omap ##class (void) { return (GET_OMAP_CLASS == (id)) ? 1 : 0; }
24
25#define GET_OMAP_SUBCLASS ((system_rev >> 20) & 0x0fff)
26
27#define IS_OMAP_SUBCLASS(subclass, id) static inline int is_omap ##subclass (void) { return (GET_OMAP_SUBCLASS == (id)) ? 1 : 0; }
28
29#define cpu_is_omap7xx() 0
30#define cpu_is_omap15xx() 0
31#define cpu_is_omap16xx() 0
32#define cpu_is_omap24xx() 0
33#define cpu_is_omap242x() 0
34#define cpu_is_omap243x() 0
35#ifdef MULTI_OMAP1
36#else
37#endif
38#define GET_OMAP_TYPE ((system_rev >> 16) & 0xffff)
39#define IS_OMAP_TYPE(type, id) static inline int is_omap ##type (void) { return (GET_OMAP_TYPE == (id)) ? 1 : 0; }
40#define cpu_is_omap310() 0
41#define cpu_is_omap730() 0
42#define cpu_is_omap1510() 0
43#define cpu_is_omap1610() 0
44#define cpu_is_omap5912() 0
45#define cpu_is_omap1611() 0
46#define cpu_is_omap1621() 0
47#define cpu_is_omap1710() 0
48#define cpu_is_omap2420() 0
49#define cpu_is_omap2422() 0
50#define cpu_is_omap2423() 0
51#define cpu_is_omap2430() 0
52#ifdef MULTI_OMAP1
53#else
54#endif
55#define cpu_class_is_omap1() (cpu_is_omap730() || cpu_is_omap15xx() || cpu_is_omap16xx())
56#define cpu_class_is_omap2() cpu_is_omap24xx()
57#endif