colibri.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef _COLIBRI_H_
  2. #define _COLIBRI_H_
  3. #include <net/ax88796.h>
  4. #include <mach/mfp.h>
  5. /*
  6. * base board glue for PXA270 module
  7. */
  8. enum {
  9. COLIBRI_EVALBOARD = 0,
  10. COLIBRI_PXA270_INCOME,
  11. };
  12. #if defined(CONFIG_MACH_COLIBRI_EVALBOARD)
  13. extern void colibri_evalboard_init(void);
  14. #else
  15. static inline void colibri_evalboard_init(void) {}
  16. #endif
  17. #if defined(CONFIG_MACH_COLIBRI_PXA270_INCOME)
  18. extern void colibri_pxa270_income_boardinit(void);
  19. #else
  20. static inline void colibri_pxa270_income_boardinit(void) {}
  21. #endif
  22. /*
  23. * common settings for all modules
  24. */
  25. #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
  26. extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin);
  27. #else
  28. static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {}
  29. #endif
  30. #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
  31. extern void colibri_pxa3xx_init_lcd(int bl_pin);
  32. #else
  33. static inline void colibri_pxa3xx_init_lcd(int bl_pin) {}
  34. #endif
  35. #if defined(CONFIG_AX88796)
  36. extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data);
  37. #endif
  38. #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE)
  39. extern void colibri_pxa3xx_init_nand(void);
  40. #else
  41. static inline void colibri_pxa3xx_init_nand(void) {}
  42. #endif
  43. /* physical memory regions */
  44. #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */
  45. /* GPIO definitions for Colibri PXA270 */
  46. #define GPIO114_COLIBRI_PXA270_ETH_IRQ 114
  47. #define GPIO0_COLIBRI_PXA270_SD_DETECT 0
  48. #define GPIO113_COLIBRI_PXA270_TS_IRQ 113
  49. /* GPIO definitions for Colibri PXA300/310 */
  50. #define GPIO13_COLIBRI_PXA300_SD_DETECT 13
  51. /* GPIO definitions for Colibri PXA320 */
  52. #define GPIO28_COLIBRI_PXA320_SD_DETECT 28
  53. #endif /* _COLIBRI_H_ */