blob: 306ad64409bea6dfe18834c38528c0ce6033b690 [file] [log] [blame]
Daniel Mack4e4fc052008-01-23 14:54:50 +01001#ifndef _COLIBRI_H_
2#define _COLIBRI_H_
Daniel Mack5fc9f9a2009-03-13 16:37:09 +01003/*
4 * common settings for all modules
5 */
Daniel Mack4e4fc052008-01-23 14:54:50 +01006
Daniel Mackacb36552009-03-23 02:04:17 +01007#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
Daniel Mack91fcfb92009-03-23 02:04:19 +010013#if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
14extern void colibri_pxa3xx_init_lcd(int bl_pin);
15#else
16static inline void colibri_pxa3xx_init_lcd(int) {}
17#endif
18
Daniel Mack22a02002009-04-02 08:33:14 +020019#if defined(CONFIG_AX88796)
20extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data);
21#endif
22
Daniel Mack4e4fc052008-01-23 14:54:50 +010023/* physical memory regions */
Daniel Mack4e4fc052008-01-23 14:54:50 +010024#define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */
25
Daniel Mack5fc9f9a2009-03-13 16:37:09 +010026/* definitions for Colibri PXA270 */
27
Daniel Mack5c0dbb82009-03-13 16:37:08 +010028#define COLIBRI_PXA270_FLASH_PHYS (PXA_CS0_PHYS) /* Flash region */
29#define COLIBRI_PXA270_ETH_PHYS (PXA_CS2_PHYS) /* Ethernet */
30#define COLIBRI_PXA270_ETH_IRQ_GPIO 114
31#define COLIBRI_PXA270_ETH_IRQ \
32 gpio_to_irq(mfp_to_gpio(COLIBRI_PXA270_ETH_IRQ_GPIO))
Daniel Mack4e4fc052008-01-23 14:54:50 +010033
34#endif /* _COLIBRI_H_ */
Daniel Mack5c0dbb82009-03-13 16:37:08 +010035