colibri.h 901 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _COLIBRI_H_
  2. #define _COLIBRI_H_
  3. /*
  4. * common settings for all modules
  5. */
  6. #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
  7. extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin);
  8. #else
  9. static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *, int, int) {}
  10. #endif
  11. #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
  12. extern void colibri_pxa3xx_init_lcd(int bl_pin);
  13. #else
  14. static inline void colibri_pxa3xx_init_lcd(int) {}
  15. #endif
  16. /* physical memory regions */
  17. #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */
  18. /* definitions for Colibri PXA270 */
  19. #define COLIBRI_PXA270_FLASH_PHYS (PXA_CS0_PHYS) /* Flash region */
  20. #define COLIBRI_PXA270_ETH_PHYS (PXA_CS2_PHYS) /* Ethernet */
  21. #define COLIBRI_PXA270_ETH_IRQ_GPIO 114
  22. #define COLIBRI_PXA270_ETH_IRQ \
  23. gpio_to_irq(mfp_to_gpio(COLIBRI_PXA270_ETH_IRQ_GPIO))
  24. #endif /* _COLIBRI_H_ */