spi-topcliff-pch: supports a spi mode setup and bit order setup by IO control
[zen-stable.git] / arch / arm / mach-pxa / include / mach / colibri.h
blobcb4236e98a0f429f55e21b776561c229befebd8b
1 #ifndef _COLIBRI_H_
2 #define _COLIBRI_H_
4 #include <net/ax88796.h>
5 #include <mach/mfp.h>
7 /*
8 * base board glue for PXA270 module
9 */
11 enum {
12 COLIBRI_EVALBOARD = 0,
13 COLIBRI_PXA270_INCOME,
16 #if defined(CONFIG_MACH_COLIBRI_EVALBOARD)
17 extern void colibri_evalboard_init(void);
18 #else
19 static inline void colibri_evalboard_init(void) {}
20 #endif
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
29 * common settings for all modules
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
35 static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {}
36 #endif
38 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
39 extern void colibri_pxa3xx_init_lcd(int bl_pin);
40 #else
41 static inline void colibri_pxa3xx_init_lcd(int bl_pin) {}
42 #endif
44 #if defined(CONFIG_AX88796)
45 extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data);
46 #endif
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
54 /* physical memory regions */
55 #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */
57 /* GPIO definitions for Colibri PXA270 */
58 #define GPIO114_COLIBRI_PXA270_ETH_IRQ 114
59 #define GPIO0_COLIBRI_PXA270_SD_DETECT 0
60 #define GPIO113_COLIBRI_PXA270_TS_IRQ 113
62 /* GPIO definitions for Colibri PXA300/310 */
63 #define GPIO13_COLIBRI_PXA300_SD_DETECT 13
65 /* GPIO definitions for Colibri PXA320 */
66 #define GPIO28_COLIBRI_PXA320_SD_DETECT 28
68 #endif /* _COLIBRI_H_ */