blob: a88d7caff0d183a68485bf0b94c3e3d92f27cdc9 [file] [log] [blame]
Daniel Mack4e4fc052008-01-23 14:54:50 +01001#ifndef _COLIBRI_H_
2#define _COLIBRI_H_
Daniel Mack8a28b102009-04-02 08:33:15 +02003
4#include <net/ax88796.h>
5
Daniel Mack5fc9f9a2009-03-13 16:37:09 +01006/*
7 * common settings for all modules
8 */
Daniel Mack4e4fc052008-01-23 14:54:50 +01009
Daniel Mackacb36552009-03-23 02:04:17 +010010#if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE)
11extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin);
12#else
Eric Miao0e983d32009-04-09 14:05:02 +080013static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {}
Daniel Mackacb36552009-03-23 02:04:17 +010014#endif
15
Daniel Mack91fcfb92009-03-23 02:04:19 +010016#if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
17extern void colibri_pxa3xx_init_lcd(int bl_pin);
18#else
Eric Miao0e983d32009-04-09 14:05:02 +080019static inline void colibri_pxa3xx_init_lcd(int bl_pin) {}
Daniel Mack91fcfb92009-03-23 02:04:19 +010020#endif
21
Daniel Mack22a02002009-04-02 08:33:14 +020022#if defined(CONFIG_AX88796)
23extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data);
24#endif
25
Daniel Mack4e4fc052008-01-23 14:54:50 +010026/* physical memory regions */
Daniel Mack4e4fc052008-01-23 14:54:50 +010027#define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */
28
Daniel Mack5fc9f9a2009-03-13 16:37:09 +010029/* definitions for Colibri PXA270 */
30
Daniel Mack5c0dbb82009-03-13 16:37:08 +010031#define COLIBRI_PXA270_FLASH_PHYS (PXA_CS0_PHYS) /* Flash region */
32#define COLIBRI_PXA270_ETH_PHYS (PXA_CS2_PHYS) /* Ethernet */
33#define COLIBRI_PXA270_ETH_IRQ_GPIO 114
34#define COLIBRI_PXA270_ETH_IRQ \
35 gpio_to_irq(mfp_to_gpio(COLIBRI_PXA270_ETH_IRQ_GPIO))
Daniel Mack4e4fc052008-01-23 14:54:50 +010036
37#endif /* _COLIBRI_H_ */
Daniel Mack5c0dbb82009-03-13 16:37:08 +010038