Commit | Line | Data |
---|---|---|
4e4fc05a DM |
1 | #ifndef _COLIBRI_H_ |
2 | #define _COLIBRI_H_ | |
8a28b10e DM |
3 | |
4 | #include <net/ax88796.h> | |
5 | ||
5fc9f9a1 DM |
6 | /* |
7 | * common settings for all modules | |
8 | */ | |
4e4fc05a | 9 | |
acb36559 DM |
10 | #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE) |
11 | extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin); | |
12 | #else | |
0e983d3c | 13 | static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {} |
acb36559 DM |
14 | #endif |
15 | ||
91fcfb90 DM |
16 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) |
17 | extern void colibri_pxa3xx_init_lcd(int bl_pin); | |
18 | #else | |
0e983d3c | 19 | static inline void colibri_pxa3xx_init_lcd(int bl_pin) {} |
91fcfb90 DM |
20 | #endif |
21 | ||
22a0200b DM |
22 | #if defined(CONFIG_AX88796) |
23 | extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data); | |
24 | #endif | |
25 | ||
53740df1 DM |
26 | #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE) |
27 | extern void colibri_pxa3xx_init_nand(void); | |
28 | #else | |
29 | static inline void colibri_pxa3xx_init_nand(void) {} | |
30 | #endif | |
31 | ||
4e4fc05a | 32 | /* physical memory regions */ |
4e4fc05a DM |
33 | #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */ |
34 | ||
5fc9f9a1 DM |
35 | /* definitions for Colibri PXA270 */ |
36 | ||
5c0dbb8f DM |
37 | #define COLIBRI_PXA270_FLASH_PHYS (PXA_CS0_PHYS) /* Flash region */ |
38 | #define COLIBRI_PXA270_ETH_PHYS (PXA_CS2_PHYS) /* Ethernet */ | |
39 | #define COLIBRI_PXA270_ETH_IRQ_GPIO 114 | |
40 | #define COLIBRI_PXA270_ETH_IRQ \ | |
41 | gpio_to_irq(mfp_to_gpio(COLIBRI_PXA270_ETH_IRQ_GPIO)) | |
4e4fc05a DM |
42 | |
43 | #endif /* _COLIBRI_H_ */ | |
5c0dbb8f | 44 |