2008-01-23 13:54:50 +00:00
|
|
|
#ifndef _COLIBRI_H_
|
|
|
|
#define _COLIBRI_H_
|
2009-04-02 06:33:15 +00:00
|
|
|
|
|
|
|
#include <net/ax88796.h>
|
2010-05-05 10:25:27 +00:00
|
|
|
#include <mach/mfp.h>
|
2009-04-02 06:33:15 +00:00
|
|
|
|
2010-05-21 22:29:38 +00:00
|
|
|
/*
|
|
|
|
* base board glue for PXA270 module
|
|
|
|
*/
|
|
|
|
|
|
|
|
enum {
|
2010-08-11 23:45:05 +00:00
|
|
|
COLIBRI_EVALBOARD = 0,
|
2010-05-21 22:29:39 +00:00
|
|
|
COLIBRI_PXA270_INCOME,
|
2010-05-21 22:29:38 +00:00
|
|
|
};
|
|
|
|
|
2010-08-11 23:45:05 +00:00
|
|
|
#if defined(CONFIG_MACH_COLIBRI_EVALBOARD)
|
|
|
|
extern void colibri_evalboard_init(void);
|
2010-05-21 22:29:38 +00:00
|
|
|
#else
|
2010-08-11 23:45:05 +00:00
|
|
|
static inline void colibri_evalboard_init(void) {}
|
2010-05-21 22:29:38 +00:00
|
|
|
#endif
|
|
|
|
|
2010-05-21 22:29:39 +00:00
|
|
|
#if defined(CONFIG_MACH_COLIBRI_PXA270_INCOME)
|
|
|
|
extern void colibri_pxa270_income_boardinit(void);
|
|
|
|
#else
|
|
|
|
static inline void colibri_pxa270_income_boardinit(void) {}
|
|
|
|
#endif
|
|
|
|
|
2009-03-13 15:37:09 +00:00
|
|
|
/*
|
|
|
|
* common settings for all modules
|
|
|
|
*/
|
2008-01-23 13:54:50 +00:00
|
|
|
|
2009-03-23 01:04:17 +00:00
|
|
|
#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
|
|
|
|
extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin);
|
|
|
|
#else
|
2009-04-09 06:05:02 +00:00
|
|
|
static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {}
|
2009-03-23 01:04:17 +00:00
|
|
|
#endif
|
|
|
|
|
2009-03-23 01:04:19 +00:00
|
|
|
#if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
|
|
|
|
extern void colibri_pxa3xx_init_lcd(int bl_pin);
|
|
|
|
#else
|
2009-04-09 06:05:02 +00:00
|
|
|
static inline void colibri_pxa3xx_init_lcd(int bl_pin) {}
|
2009-03-23 01:04:19 +00:00
|
|
|
#endif
|
|
|
|
|
2009-04-02 06:33:14 +00:00
|
|
|
#if defined(CONFIG_AX88796)
|
|
|
|
extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data);
|
|
|
|
#endif
|
|
|
|
|
2009-06-17 08:32:54 +00:00
|
|
|
#if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE)
|
|
|
|
extern void colibri_pxa3xx_init_nand(void);
|
|
|
|
#else
|
|
|
|
static inline void colibri_pxa3xx_init_nand(void) {}
|
|
|
|
#endif
|
|
|
|
|
2008-01-23 13:54:50 +00:00
|
|
|
/* physical memory regions */
|
|
|
|
#define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */
|
|
|
|
|
2010-05-21 22:29:33 +00:00
|
|
|
/* GPIO definitions for Colibri PXA270 */
|
|
|
|
#define GPIO114_COLIBRI_PXA270_ETH_IRQ 114
|
2010-05-21 22:29:34 +00:00
|
|
|
#define GPIO0_COLIBRI_PXA270_SD_DETECT 0
|
2010-05-21 22:29:37 +00:00
|
|
|
#define GPIO113_COLIBRI_PXA270_TS_IRQ 113
|
2008-01-23 13:54:50 +00:00
|
|
|
|
2010-08-11 23:18:38 +00:00
|
|
|
/* GPIO definitions for Colibri PXA300/310 */
|
2010-12-23 15:01:02 +00:00
|
|
|
#define GPIO13_COLIBRI_PXA300_SD_DETECT 13
|
2010-08-11 23:18:38 +00:00
|
|
|
|
|
|
|
/* GPIO definitions for Colibri PXA320 */
|
|
|
|
#define GPIO28_COLIBRI_PXA320_SD_DETECT 28
|
|
|
|
|
2008-01-23 13:54:50 +00:00
|
|
|
#endif /* _COLIBRI_H_ */
|
2009-03-13 15:37:08 +00:00
|
|
|
|