Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _COLIBRI_H_
0003 #define _COLIBRI_H_
0004 
0005 #include <net/ax88796.h>
0006 #include "mfp.h"
0007 
0008 /*
0009  * base board glue for PXA270 module
0010  */
0011 
0012 enum {
0013     COLIBRI_EVALBOARD = 0,
0014     COLIBRI_PXA270_INCOME,
0015 };
0016 
0017 #if defined(CONFIG_MACH_COLIBRI_EVALBOARD)
0018 extern void colibri_evalboard_init(void);
0019 #else
0020 static inline void colibri_evalboard_init(void) {}
0021 #endif
0022 
0023 #if defined(CONFIG_MACH_COLIBRI_PXA270_INCOME)
0024 extern void colibri_pxa270_income_boardinit(void);
0025 #else
0026 static inline void colibri_pxa270_income_boardinit(void) {}
0027 #endif
0028 
0029 /*
0030  * common settings for all modules
0031  */
0032 
0033 #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
0034 extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin);
0035 #else
0036 static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {}
0037 #endif
0038 
0039 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
0040 extern void colibri_pxa3xx_init_lcd(int bl_pin);
0041 #else
0042 static inline void colibri_pxa3xx_init_lcd(int bl_pin) {}
0043 #endif
0044 
0045 #if defined(CONFIG_AX88796)
0046 extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data);
0047 #endif
0048 
0049 #if IS_ENABLED(CONFIG_MTD_NAND_MARVELL)
0050 extern void colibri_pxa3xx_init_nand(void);
0051 #else
0052 static inline void colibri_pxa3xx_init_nand(void) {}
0053 #endif
0054 
0055 /* physical memory regions */
0056 #define COLIBRI_SDRAM_BASE  0xa0000000      /* SDRAM region */
0057 
0058 /* GPIO definitions for Colibri PXA270 */
0059 #define GPIO114_COLIBRI_PXA270_ETH_IRQ  114
0060 #define GPIO0_COLIBRI_PXA270_SD_DETECT  0
0061 #define GPIO113_COLIBRI_PXA270_TS_IRQ   113
0062 
0063 /* GPIO definitions for Colibri PXA300/310 */
0064 #define GPIO13_COLIBRI_PXA300_SD_DETECT 13
0065 
0066 /* GPIO definitions for Colibri PXA320 */
0067 #define GPIO28_COLIBRI_PXA320_SD_DETECT 28
0068 
0069 #endif /* _COLIBRI_H_ */
0070