Path: blob/master/arch/arm/mach-pxa/include/mach/colibri.h
10820 views
#ifndef _COLIBRI_H_1#define _COLIBRI_H_23#include <net/ax88796.h>4#include <mach/mfp.h>56/*7* base board glue for PXA270 module8*/910enum {11COLIBRI_EVALBOARD = 0,12COLIBRI_PXA270_INCOME,13};1415#if defined(CONFIG_MACH_COLIBRI_EVALBOARD)16extern void colibri_evalboard_init(void);17#else18static inline void colibri_evalboard_init(void) {}19#endif2021#if defined(CONFIG_MACH_COLIBRI_PXA270_INCOME)22extern void colibri_pxa270_income_boardinit(void);23#else24static inline void colibri_pxa270_income_boardinit(void) {}25#endif2627/*28* common settings for all modules29*/3031#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)32extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin);33#else34static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {}35#endif3637#if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)38extern void colibri_pxa3xx_init_lcd(int bl_pin);39#else40static inline void colibri_pxa3xx_init_lcd(int bl_pin) {}41#endif4243#if defined(CONFIG_AX88796)44extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data);45#endif4647#if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE)48extern void colibri_pxa3xx_init_nand(void);49#else50static inline void colibri_pxa3xx_init_nand(void) {}51#endif5253/* physical memory regions */54#define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */5556/* GPIO definitions for Colibri PXA270 */57#define GPIO114_COLIBRI_PXA270_ETH_IRQ 11458#define GPIO0_COLIBRI_PXA270_SD_DETECT 059#define GPIO113_COLIBRI_PXA270_TS_IRQ 1136061/* GPIO definitions for Colibri PXA300/310 */62#define GPIO13_COLIBRI_PXA300_SD_DETECT 136364/* GPIO definitions for Colibri PXA320 */65#define GPIO28_COLIBRI_PXA320_SD_DETECT 286667#endif /* _COLIBRI_H_ */68697071