Commit | Line | Data |
---|---|---|
52c543f9 | 1 | /* |
63dd1084 SH |
2 | * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. |
3 | * Copyright 2008 Juergen Beisert, kernel@pengutronix.de | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or | |
6 | * modify it under the terms of the GNU General Public License | |
7 | * as published by the Free Software Foundation; either version 2 | |
8 | * of the License, or (at your option) any later version. | |
9 | * This program is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | * GNU General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License | |
15 | * along with this program; if not, write to the Free Software | |
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
17 | * MA 02110-1301, USA. | |
52c543f9 QJ |
18 | */ |
19 | ||
52c543f9 QJ |
20 | #ifndef __ASM_ARCH_MXC_HARDWARE_H__ |
21 | #define __ASM_ARCH_MXC_HARDWARE_H__ | |
22 | ||
23 | #include <asm/sizes.h> | |
24 | ||
f5d7a13b UKK |
25 | #ifdef __ASSEMBLER__ |
26 | #define IOMEM(addr) (addr) | |
27 | #else | |
28 | #define IOMEM(addr) ((void __force __iomem *)(addr)) | |
29 | #endif | |
30 | ||
31 | #define IMX_IO_P2V_MODULE(addr, module) \ | |
32 | (((addr) - module ## _BASE_ADDR) < module ## _SIZE ? \ | |
33 | (addr) - (module ## _BASE_ADDR) + (module ## _BASE_ADDR_VIRT) : 0) | |
1f2ddd64 | 34 | |
438caa3f AK |
35 | #ifdef CONFIG_ARCH_MX5 |
36 | #include <mach/mx51.h> | |
37 | #endif | |
38 | ||
d2db9aaa | 39 | #ifdef CONFIG_ARCH_MX3 |
c0a5f855 SH |
40 | #include <mach/mx3x.h> |
41 | #include <mach/mx31.h> | |
42 | #include <mach/mx35.h> | |
d2db9aaa | 43 | #endif |
52c543f9 | 44 | |
32dc80c9 | 45 | #ifdef CONFIG_ARCH_MX2 |
260a1fd2 HS |
46 | # include <mach/mx2x.h> |
47 | # ifdef CONFIG_MACH_MX21 | |
48 | # include <mach/mx21.h> | |
49 | # endif | |
f31405cc | 50 | # ifdef CONFIG_MACH_MX27 |
a09e64fb | 51 | # include <mach/mx27.h> |
f31405cc | 52 | # endif |
32dc80c9 JB |
53 | #endif |
54 | ||
cfca8b53 PZ |
55 | #ifdef CONFIG_ARCH_MX1 |
56 | # include <mach/mx1.h> | |
57 | #endif | |
58 | ||
8c25c36f SH |
59 | #ifdef CONFIG_ARCH_MX25 |
60 | # include <mach/mx25.h> | |
61 | #endif | |
62 | ||
fd6ac7bb DT |
63 | #ifdef CONFIG_ARCH_MXC91231 |
64 | # include <mach/mxc91231.h> | |
65 | #endif | |
66 | ||
a09e64fb | 67 | #include <mach/mxc.h> |
52c543f9 | 68 | |
f304fc42 | 69 | #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */ |