blob: 902d11ddfc3ef5ae577ad1282837896e2420b95e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/*
* (c) 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
*
* Copyright (C) 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
*
* This file is released under the GPLv2
*
*/
#ifndef __MACH_HARDWARE_H
#define __MACH_HARDWARE_H
#ifdef CONFIG_ARCH_PXA2XX
#define cpu_is_pxa2xx() (1)
#else
#define cpu_is_pxa2xx() (0)
#endif
#ifdef CONFIG_ARCH_PXA25X
#define cpu_is_pxa25x() (1)
#else
#define cpu_is_pxa25x() (0)
#endif
#ifdef CONFIG_ARCH_PXA27X
#define cpu_is_pxa27x() (1)
#else
#define cpu_is_pxa27x() (0)
#endif
#ifdef CONFIG_ARCH_PXA3XX
#define cpu_is_pxa3xx() (1)
# ifdef CONFIG_ARCH_PXA320
# define cpu_is_pxa320() (1)
# else
# define cpu_is_pxa320() (0)
# endif
# ifdef CONFIG_ARCH_PXA310
# define cpu_is_pxa310() (1)
# else
# define cpu_is_pxa310() (0)
# endif
#else
#define cpu_is_pxa3xx() (0)
#endif
#ifdef __ASSEMBLY__
#define __REG(x) (x)
#endif
#endif /* !__MACH_HARDWARE_H */
|