Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 1 | #ifndef _COLIBRI_H_ |
| 2 | #define _COLIBRI_H_ |
Daniel Mack | 8a28b10 | 2009-04-02 08:33:15 +0200 | [diff] [blame] | 3 | |
| 4 | #include <net/ax88796.h> |
Jakob Viketoft | ccb8d8d | 2010-05-05 18:25:27 +0800 | [diff] [blame] | 5 | #include <mach/mfp.h> |
Daniel Mack | 8a28b10 | 2009-04-02 08:33:15 +0200 | [diff] [blame] | 6 | |
Daniel Mack | 5fc9f9a | 2009-03-13 16:37:09 +0100 | [diff] [blame] | 7 | /* |
| 8 | * common settings for all modules |
| 9 | */ |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 10 | |
Daniel Mack | acb3655 | 2009-03-23 02:04:17 +0100 | [diff] [blame] | 11 | #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE) |
| 12 | extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin); |
| 13 | #else |
Eric Miao | 0e983d3 | 2009-04-09 14:05:02 +0800 | [diff] [blame] | 14 | static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {} |
Daniel Mack | acb3655 | 2009-03-23 02:04:17 +0100 | [diff] [blame] | 15 | #endif |
| 16 | |
Daniel Mack | 91fcfb9 | 2009-03-23 02:04:19 +0100 | [diff] [blame] | 17 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) |
| 18 | extern void colibri_pxa3xx_init_lcd(int bl_pin); |
| 19 | #else |
Eric Miao | 0e983d3 | 2009-04-09 14:05:02 +0800 | [diff] [blame] | 20 | static inline void colibri_pxa3xx_init_lcd(int bl_pin) {} |
Daniel Mack | 91fcfb9 | 2009-03-23 02:04:19 +0100 | [diff] [blame] | 21 | #endif |
| 22 | |
Daniel Mack | 22a0200 | 2009-04-02 08:33:14 +0200 | [diff] [blame] | 23 | #if defined(CONFIG_AX88796) |
| 24 | extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data); |
| 25 | #endif |
| 26 | |
Daniel Mack | 53740df | 2009-06-17 10:32:54 +0200 | [diff] [blame] | 27 | #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE) |
| 28 | extern void colibri_pxa3xx_init_nand(void); |
| 29 | #else |
| 30 | static inline void colibri_pxa3xx_init_nand(void) {} |
| 31 | #endif |
| 32 | |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 33 | /* physical memory regions */ |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 34 | #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */ |
| 35 | |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 36 | /* GPIO definitions for Colibri PXA270 */ |
| 37 | #define GPIO114_COLIBRI_PXA270_ETH_IRQ 114 |
Marek Vasut | d01b8d6 | 2010-05-22 00:29:34 +0200 | [diff] [blame] | 38 | #define GPIO0_COLIBRI_PXA270_SD_DETECT 0 |
Marek Vasut | 7cca84a | 2010-05-22 00:29:37 +0200 | [diff] [blame^] | 39 | #define GPIO113_COLIBRI_PXA270_TS_IRQ 113 |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 40 | |
| 41 | #endif /* _COLIBRI_H_ */ |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 42 | |