[ARM] pxa: Refactor Colibri board support code
[pandora-kernel.git] / arch / arm / mach-pxa / include / mach / colibri.h
1 #ifndef _COLIBRI_H_
2 #define _COLIBRI_H_
3 /*
4  * common settings for all modules
5  */
6
7 #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
8 extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin);
9 #else
10 static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *, int, int) {}
11 #endif
12
13 /* physical memory regions */
14 #define COLIBRI_SDRAM_BASE      0xa0000000      /* SDRAM region */
15
16 /* definitions for Colibri PXA270 */
17
18 #define COLIBRI_PXA270_FLASH_PHYS       (PXA_CS0_PHYS)  /* Flash region */
19 #define COLIBRI_PXA270_ETH_PHYS         (PXA_CS2_PHYS)  /* Ethernet */
20 #define COLIBRI_PXA270_ETH_IRQ_GPIO     114
21 #define COLIBRI_PXA270_ETH_IRQ          \
22         gpio_to_irq(mfp_to_gpio(COLIBRI_PXA270_ETH_IRQ_GPIO))
23
24 #endif /* _COLIBRI_H_ */
25