diff options
author | Robert Schwebel <robert@schwebel.de> | 2008-04-02 05:29:30 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-17 11:15:17 -0400 |
commit | d2db9aaa4a5b9f2a1d54080c13f5ff4fc6d0ae1b (patch) | |
tree | 356086f774a58af35a14f2f6a732e4693719a13c /include/asm-arm/arch-mxc/hardware.h | |
parent | 2c130fd5294499cd94578f8c792e190959372763 (diff) |
[ARM] 4887/1: i.MXC family: Separate current platform code
From: Juergen Beisert <j.beisert@pengutronix.de>
This patch separates the current code into i.MX2 and i.MX3 and modifies
the Kconfig files to reflect this separation in the menus.
Things happend since last review:
- make i.MX3 compile again
- fix some structure names to be conform with all the shared/common
sources from i.MX1/i.MX2
Previous changes:
- stay conform to other Kconfig files (note from Russell King)
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-mxc/hardware.h')
-rw-r--r-- | include/asm-arm/arch-mxc/hardware.h | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/include/asm-arm/arch-mxc/hardware.h b/include/asm-arm/arch-mxc/hardware.h index e70387e91b77..e87ff0679d5e 100644 --- a/include/asm-arm/arch-mxc/hardware.h +++ b/include/asm-arm/arch-mxc/hardware.h | |||
@@ -13,34 +13,19 @@ | |||
13 | 13 | ||
14 | #include <asm/sizes.h> | 14 | #include <asm/sizes.h> |
15 | 15 | ||
16 | #include <asm/arch/mx31.h> | 16 | #ifdef CONFIG_ARCH_MX3 |
17 | # include <asm/arch/mx31.h> | ||
18 | #endif | ||
17 | 19 | ||
18 | #include <asm/arch/mxc.h> | 20 | #include <asm/arch/mxc.h> |
19 | 21 | ||
20 | #define MXC_MAX_GPIO_LINES (GPIO_NUM_PIN * GPIO_PORT_NUM) | ||
21 | |||
22 | /* | 22 | /* |
23 | * --------------------------------------------------------------------------- | 23 | * --------------------------------------------------------------------------- |
24 | * Board specific defines | 24 | * Board specific defines |
25 | * --------------------------------------------------------------------------- | 25 | * --------------------------------------------------------------------------- |
26 | */ | 26 | */ |
27 | #define MXC_EXP_IO_BASE (MXC_GPIO_INT_BASE + MXC_MAX_GPIO_LINES) | 27 | #ifdef CONFIG_MACH_MX31ADS |
28 | 28 | # include <asm/arch/board-mx31ads.h> | |
29 | #include <asm/arch/board-mx31ads.h> | ||
30 | |||
31 | #ifndef MXC_MAX_EXP_IO_LINES | ||
32 | #define MXC_MAX_EXP_IO_LINES 0 | ||
33 | #endif | 29 | #endif |
34 | 30 | ||
35 | #define MXC_MAX_VIRTUAL_INTS 16 | ||
36 | #define MXC_VIRTUAL_INTS_BASE (MXC_EXP_IO_BASE + MXC_MAX_EXP_IO_LINES) | ||
37 | #define MXC_SDIO1_CARD_IRQ MXC_VIRTUAL_INTS_BASE | ||
38 | #define MXC_SDIO2_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 1) | ||
39 | #define MXC_SDIO3_CARD_IRQ (MXC_VIRTUAL_INTS_BASE + 2) | ||
40 | |||
41 | #define MXC_MAX_INTS (MXC_MAX_INT_LINES + \ | ||
42 | MXC_MAX_GPIO_LINES + \ | ||
43 | MXC_MAX_EXP_IO_LINES + \ | ||
44 | MXC_MAX_VIRTUAL_INTS) | ||
45 | |||
46 | #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */ | 31 | #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */ |