aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/include/mach
diff options
context:
space:
mode:
authorDaniel Mack <daniel@caiaq.de>2009-03-22 21:04:17 -0400
committerEric Miao <eric.miao@marvell.com>2009-03-22 21:59:04 -0400
commitacb3655973de30cb74549986e5e118a374967702 (patch)
tree3ed765a1498c77c0dca59b0a2f82de1a96d1a5c7 /arch/arm/mach-pxa/include/mach
parent626806d96fcfe355af5e1d299f651c774f68ead0 (diff)
[ARM] pxa: Refactor Colibri board support code
- Move common function for all Colibri PXA3xx boards to the newly added colibri-pxa3xx.c - Drop some unnecessary defines from colibri.h - Make Kconfig reflect the fact that code for colibri 300 module does also work for the 310 model - Give up on the huge pin config table which was messed up with lots of #ifdefs and switch over to locally defined tables for configured functions Cc: Matthias Meier <matthias.j.meier@gmx.net> Signed-off-by: Daniel Mack <daniel@caiaq.de> Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa/include/mach')
-rw-r--r--arch/arm/mach-pxa/include/mach/colibri.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/arch/arm/mach-pxa/include/mach/colibri.h b/arch/arm/mach-pxa/include/mach/colibri.h
index e295e8df8d64..0becf6215c1d 100644
--- a/arch/arm/mach-pxa/include/mach/colibri.h
+++ b/arch/arm/mach-pxa/include/mach/colibri.h
@@ -4,6 +4,12 @@
4 * common settings for all modules 4 * common settings for all modules
5 */ 5 */
6 6
7#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
8extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin);
9#else
10static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *, int, int) {}
11#endif
12
7/* physical memory regions */ 13/* physical memory regions */
8#define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */ 14#define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */
9 15
@@ -15,17 +21,5 @@
15#define COLIBRI_PXA270_ETH_IRQ \ 21#define COLIBRI_PXA270_ETH_IRQ \
16 gpio_to_irq(mfp_to_gpio(COLIBRI_PXA270_ETH_IRQ_GPIO)) 22 gpio_to_irq(mfp_to_gpio(COLIBRI_PXA270_ETH_IRQ_GPIO))
17 23
18/* definitions for Colibri PXA300 */
19
20#define COLIBRI_PXA300_ETH_IRQ_GPIO 26
21#define COLIBRI_PXA300_ETH_IRQ \
22 gpio_to_irq(mfp_to_gpio(COLIBRI_PXA300_ETH_IRQ_GPIO))
23
24/* definitions for Colibri PXA320 */
25
26#define COLIBRI_PXA320_ETH_IRQ_GPIO 36
27#define COLIBRI_PXA320_ETH_IRQ \
28 gpio_to_irq(mfp_to_gpio(COLIBRI_PXA320_ETH_IRQ_GPIO))
29
30#endif /* _COLIBRI_H_ */ 24#endif /* _COLIBRI_H_ */
31 25