diff options
Diffstat (limited to 'include/asm-arm/arch-mxc/hardware.h')
-rw-r--r-- | include/asm-arm/arch-mxc/hardware.h | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/include/asm-arm/arch-mxc/hardware.h b/include/asm-arm/arch-mxc/hardware.h index 3c09b92fef0d..e87ff0679d5e 100644 --- a/include/asm-arm/arch-mxc/hardware.h +++ b/include/asm-arm/arch-mxc/hardware.h | |||
@@ -8,45 +8,24 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | /*! | ||
12 | * @file hardware.h | ||
13 | * @brief This file contains the hardware definitions of the board. | ||
14 | * | ||
15 | * @ingroup System | ||
16 | */ | ||
17 | #ifndef __ASM_ARCH_MXC_HARDWARE_H__ | 11 | #ifndef __ASM_ARCH_MXC_HARDWARE_H__ |
18 | #define __ASM_ARCH_MXC_HARDWARE_H__ | 12 | #define __ASM_ARCH_MXC_HARDWARE_H__ |
19 | 13 | ||
20 | #include <asm/sizes.h> | 14 | #include <asm/sizes.h> |
21 | 15 | ||
22 | #include <asm/arch/mx31.h> | 16 | #ifdef CONFIG_ARCH_MX3 |
17 | # include <asm/arch/mx31.h> | ||
18 | #endif | ||
23 | 19 | ||
24 | #include <asm/arch/mxc.h> | 20 | #include <asm/arch/mxc.h> |
25 | 21 | ||
26 | #define MXC_MAX_GPIO_LINES (GPIO_NUM_PIN * GPIO_PORT_NUM) | ||
27 | |||
28 | /* | 22 | /* |
29 | * --------------------------------------------------------------------------- | 23 | * --------------------------------------------------------------------------- |
30 | * Board specific defines | 24 | * Board specific defines |
31 | * --------------------------------------------------------------------------- | 25 | * --------------------------------------------------------------------------- |
32 | */ | 26 | */ |
33 | #define MXC_EXP_IO_BASE (MXC_GPIO_INT_BASE + MXC_MAX_GPIO_LINES) | 27 | #ifdef CONFIG_MACH_MX31ADS |
34 | 28 | # include <asm/arch/board-mx31ads.h> | |
35 | #include <asm/arch/board-mx31ads.h> | ||
36 | |||
37 | #ifndef MXC_MAX_EXP_IO_LINES | ||
38 | #define MXC_MAX_EXP_IO_LINES 0 | ||
39 | #endif | 29 | #endif |
40 | 30 | ||
41 | #define MXC_MAX_VIRTUAL_INTS 16 | 31 | #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */ |
42 | #define MXC_VIRTUAL_INTS_BASE (MXC_EXP_IO_BASE + MXC_MAX_EXP_IO_LINES) | ||
43 | #define MXC_SDIO1_CARD_IRQ MXC_VIRTUAL_INTS_BASE | ||
44 | #define MXC_SDIO2_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 1) | ||
45 | #define MXC_SDIO3_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 2) | ||
46 | |||
47 | #define MXC_MAX_INTS (MXC_MAX_INT_LINES + \ | ||
48 | MXC_MAX_GPIO_LINES + \ | ||
49 | MXC_MAX_EXP_IO_LINES + \ | ||
50 | MXC_MAX_VIRTUAL_INTS) | ||
51 | |||
52 | #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */ | ||