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 | /* |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 8 | * base board glue for PXA270 module |
| 9 | */ |
| 10 | |
| 11 | enum { |
Marek Vasut | a3172e5 | 2010-08-12 01:45:05 +0200 | [diff] [blame] | 12 | COLIBRI_EVALBOARD = 0, |
Marek Vasut | 403d297 | 2010-05-22 00:29:39 +0200 | [diff] [blame] | 13 | COLIBRI_PXA270_INCOME, |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 14 | }; |
| 15 | |
Marek Vasut | a3172e5 | 2010-08-12 01:45:05 +0200 | [diff] [blame] | 16 | #if defined(CONFIG_MACH_COLIBRI_EVALBOARD) |
| 17 | extern void colibri_evalboard_init(void); |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 18 | #else |
Marek Vasut | a3172e5 | 2010-08-12 01:45:05 +0200 | [diff] [blame] | 19 | static inline void colibri_evalboard_init(void) {} |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 20 | #endif |
| 21 | |
Marek Vasut | 403d297 | 2010-05-22 00:29:39 +0200 | [diff] [blame] | 22 | #if defined(CONFIG_MACH_COLIBRI_PXA270_INCOME) |
| 23 | extern void colibri_pxa270_income_boardinit(void); |
| 24 | #else |
| 25 | static inline void colibri_pxa270_income_boardinit(void) {} |
| 26 | #endif |
| 27 | |
Daniel Mack | 4c243c8 | 2010-05-22 00:29:38 +0200 | [diff] [blame] | 28 | /* |
Daniel Mack | 5fc9f9a | 2009-03-13 16:37:09 +0100 | [diff] [blame] | 29 | * common settings for all modules |
| 30 | */ |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 31 | |
Daniel Mack | acb3655 | 2009-03-23 02:04:17 +0100 | [diff] [blame] | 32 | #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE) |
| 33 | extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin); |
| 34 | #else |
Eric Miao | 0e983d3 | 2009-04-09 14:05:02 +0800 | [diff] [blame] | 35 | 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] | 36 | #endif |
| 37 | |
Daniel Mack | 91fcfb9 | 2009-03-23 02:04:19 +0100 | [diff] [blame] | 38 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) |
| 39 | extern void colibri_pxa3xx_init_lcd(int bl_pin); |
| 40 | #else |
Eric Miao | 0e983d3 | 2009-04-09 14:05:02 +0800 | [diff] [blame] | 41 | static inline void colibri_pxa3xx_init_lcd(int bl_pin) {} |
Daniel Mack | 91fcfb9 | 2009-03-23 02:04:19 +0100 | [diff] [blame] | 42 | #endif |
| 43 | |
Daniel Mack | 22a0200 | 2009-04-02 08:33:14 +0200 | [diff] [blame] | 44 | #if defined(CONFIG_AX88796) |
| 45 | extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data); |
| 46 | #endif |
| 47 | |
Daniel Mack | 53740df | 2009-06-17 10:32:54 +0200 | [diff] [blame] | 48 | #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE) |
| 49 | extern void colibri_pxa3xx_init_nand(void); |
| 50 | #else |
| 51 | static inline void colibri_pxa3xx_init_nand(void) {} |
| 52 | #endif |
| 53 | |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 54 | /* physical memory regions */ |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 55 | #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */ |
| 56 | |
Marek Vasut | f95bb54 | 2010-05-22 00:29:33 +0200 | [diff] [blame] | 57 | /* GPIO definitions for Colibri PXA270 */ |
| 58 | #define GPIO114_COLIBRI_PXA270_ETH_IRQ 114 |
Marek Vasut | d01b8d6 | 2010-05-22 00:29:34 +0200 | [diff] [blame] | 59 | #define GPIO0_COLIBRI_PXA270_SD_DETECT 0 |
Marek Vasut | 7cca84a | 2010-05-22 00:29:37 +0200 | [diff] [blame] | 60 | #define GPIO113_COLIBRI_PXA270_TS_IRQ 113 |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 61 | |
Marek Vasut | 9b6956f | 2010-08-12 01:18:38 +0200 | [diff] [blame] | 62 | /* GPIO definitions for Colibri PXA300/310 */ |
Bjørn Forsman | 57834a7 | 2010-12-23 16:01:02 +0100 | [diff] [blame] | 63 | #define GPIO13_COLIBRI_PXA300_SD_DETECT 13 |
Marek Vasut | 9b6956f | 2010-08-12 01:18:38 +0200 | [diff] [blame] | 64 | |
| 65 | /* GPIO definitions for Colibri PXA320 */ |
| 66 | #define GPIO28_COLIBRI_PXA320_SD_DETECT 28 |
| 67 | |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 68 | #endif /* _COLIBRI_H_ */ |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 69 | |