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