]>
Commit | Line | Data |
---|---|---|
4e4fc05a DM |
1 | #ifndef _COLIBRI_H_ |
2 | #define _COLIBRI_H_ | |
8a28b10e DM |
3 | |
4 | #include <net/ax88796.h> | |
ccb8d8d0 | 5 | #include <mach/mfp.h> |
8a28b10e | 6 | |
4c243c85 DM |
7 | /* |
8 | * base board glue for PXA270 module | |
9 | */ | |
10 | ||
11 | enum { | |
12 | COLIBRI_PXA270_EVALBOARD = 0, | |
403d2971 | 13 | COLIBRI_PXA270_INCOME, |
4c243c85 DM |
14 | }; |
15 | ||
16 | #if defined(CONFIG_MACH_COLIBRI_PXA270_EVALBOARD) | |
17 | extern void colibri_pxa270_evalboard_init(void); | |
18 | #else | |
19 | static inline void colibri_pxa270_evalboard_init(void) {} | |
20 | #endif | |
21 | ||
403d2971 MV |
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 | ||
5fc9f9a1 DM |
28 | /* |
29 | * common settings for all modules | |
30 | */ | |
4e4fc05a | 31 | |
acb36559 DM |
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 | |
0e983d3c | 35 | static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {} |
acb36559 DM |
36 | #endif |
37 | ||
91fcfb90 DM |
38 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) |
39 | extern void colibri_pxa3xx_init_lcd(int bl_pin); | |
40 | #else | |
0e983d3c | 41 | static inline void colibri_pxa3xx_init_lcd(int bl_pin) {} |
91fcfb90 DM |
42 | #endif |
43 | ||
22a0200b DM |
44 | #if defined(CONFIG_AX88796) |
45 | extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data); | |
46 | #endif | |
47 | ||
53740df1 DM |
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 | ||
4e4fc05a | 54 | /* physical memory regions */ |
4e4fc05a DM |
55 | #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */ |
56 | ||
f95bb540 MV |
57 | /* GPIO definitions for Colibri PXA270 */ |
58 | #define GPIO114_COLIBRI_PXA270_ETH_IRQ 114 | |
d01b8d64 | 59 | #define GPIO0_COLIBRI_PXA270_SD_DETECT 0 |
7cca84ab | 60 | #define GPIO113_COLIBRI_PXA270_TS_IRQ 113 |
4e4fc05a | 61 | |
9b6956f4 MV |
62 | /* GPIO definitions for Colibri PXA300/310 */ |
63 | #define GPIO39_COLIBRI_PXA300_SD_DETECT 39 | |
64 | ||
65 | /* GPIO definitions for Colibri PXA320 */ | |
66 | #define GPIO28_COLIBRI_PXA320_SD_DETECT 28 | |
67 | ||
4e4fc05a | 68 | #endif /* _COLIBRI_H_ */ |
5c0dbb8f | 69 |