blob: c5492366349ae2e3c25642160411b902d28bcbb0 [file] [log] [blame]
Daniel Mack4e4fc052008-01-23 14:54:50 +01001#ifndef _COLIBRI_H_
2#define _COLIBRI_H_
Daniel Mack8a28b102009-04-02 08:33:15 +02003
4#include <net/ax88796.h>
Jakob Viketoftccb8d8d2010-05-05 18:25:27 +08005#include <mach/mfp.h>
Daniel Mack8a28b102009-04-02 08:33:15 +02006
Daniel Mack5fc9f9a2009-03-13 16:37:09 +01007/*
8 * common settings for all modules
9 */
Daniel Mack4e4fc052008-01-23 14:54:50 +010010
Daniel Mackacb36552009-03-23 02:04:17 +010011#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
12extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin);
13#else
Eric Miao0e983d32009-04-09 14:05:02 +080014static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {}
Daniel Mackacb36552009-03-23 02:04:17 +010015#endif
16
Daniel Mack91fcfb92009-03-23 02:04:19 +010017#if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
18extern void colibri_pxa3xx_init_lcd(int bl_pin);
19#else
Eric Miao0e983d32009-04-09 14:05:02 +080020static inline void colibri_pxa3xx_init_lcd(int bl_pin) {}
Daniel Mack91fcfb92009-03-23 02:04:19 +010021#endif
22
Daniel Mack22a02002009-04-02 08:33:14 +020023#if defined(CONFIG_AX88796)
24extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data);
25#endif
26
Daniel Mack53740df2009-06-17 10:32:54 +020027#if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE)
28extern void colibri_pxa3xx_init_nand(void);
29#else
30static inline void colibri_pxa3xx_init_nand(void) {}
31#endif
32
Daniel Mack4e4fc052008-01-23 14:54:50 +010033/* physical memory regions */
Daniel Mack4e4fc052008-01-23 14:54:50 +010034#define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */
35
Marek Vasutf95bb542010-05-22 00:29:33 +020036/* GPIO definitions for Colibri PXA270 */
37#define GPIO114_COLIBRI_PXA270_ETH_IRQ 114
Marek Vasutd01b8d62010-05-22 00:29:34 +020038#define GPIO0_COLIBRI_PXA270_SD_DETECT 0
Daniel Mack4e4fc052008-01-23 14:54:50 +010039
40#endif /* _COLIBRI_H_ */
Daniel Mack5c0dbb82009-03-13 16:37:08 +010041