WIP FPC-III support
[linux/fpc-iii.git] / arch / arm / mach-pxa / colibri.h
blob85525d49e321bc7983559435e8ea60a14ae4a47d
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _COLIBRI_H_
3 #define _COLIBRI_H_
5 #include <net/ax88796.h>
6 #include <mach/mfp.h>
8 /*
9 * base board glue for PXA270 module
12 enum {
13 COLIBRI_EVALBOARD = 0,
14 COLIBRI_PXA270_INCOME,
17 #if defined(CONFIG_MACH_COLIBRI_EVALBOARD)
18 extern void colibri_evalboard_init(void);
19 #else
20 static inline void colibri_evalboard_init(void) {}
21 #endif
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
30 * common settings for all modules
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
36 static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {}
37 #endif
39 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
40 extern void colibri_pxa3xx_init_lcd(int bl_pin);
41 #else
42 static inline void colibri_pxa3xx_init_lcd(int bl_pin) {}
43 #endif
45 #if defined(CONFIG_AX88796)
46 extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data);
47 #endif
49 #if IS_ENABLED(CONFIG_MTD_NAND_MARVELL)
50 extern void colibri_pxa3xx_init_nand(void);
51 #else
52 static inline void colibri_pxa3xx_init_nand(void) {}
53 #endif
55 /* physical memory regions */
56 #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */
58 /* GPIO definitions for Colibri PXA270 */
59 #define GPIO114_COLIBRI_PXA270_ETH_IRQ 114
60 #define GPIO0_COLIBRI_PXA270_SD_DETECT 0
61 #define GPIO113_COLIBRI_PXA270_TS_IRQ 113
63 /* GPIO definitions for Colibri PXA300/310 */
64 #define GPIO13_COLIBRI_PXA300_SD_DETECT 13
66 /* GPIO definitions for Colibri PXA320 */
67 #define GPIO28_COLIBRI_PXA320_SD_DETECT 28
69 #endif /* _COLIBRI_H_ */