Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 1 | #ifndef _COLIBRI_H_ |
| 2 | #define _COLIBRI_H_ |
Daniel Mack | 8a28b10 | 2009-04-02 08:33:15 +0200 | [diff] [blame] | 3 | |
| 4 | #include <net/ax88796.h> |
| 5 | |
Daniel Mack | 5fc9f9a | 2009-03-13 16:37:09 +0100 | [diff] [blame] | 6 | /* |
| 7 | * common settings for all modules |
| 8 | */ |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 9 | |
Daniel Mack | acb3655 | 2009-03-23 02:04:17 +0100 | [diff] [blame] | 10 | #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE) |
| 11 | extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin); |
| 12 | #else |
Eric Miao | 0e983d3 | 2009-04-09 14:05:02 +0800 | [diff] [blame^] | 13 | static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin) {} |
Daniel Mack | acb3655 | 2009-03-23 02:04:17 +0100 | [diff] [blame] | 14 | #endif |
| 15 | |
Daniel Mack | 91fcfb9 | 2009-03-23 02:04:19 +0100 | [diff] [blame] | 16 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) |
| 17 | extern void colibri_pxa3xx_init_lcd(int bl_pin); |
| 18 | #else |
Eric Miao | 0e983d3 | 2009-04-09 14:05:02 +0800 | [diff] [blame^] | 19 | static inline void colibri_pxa3xx_init_lcd(int bl_pin) {} |
Daniel Mack | 91fcfb9 | 2009-03-23 02:04:19 +0100 | [diff] [blame] | 20 | #endif |
| 21 | |
Daniel Mack | 22a0200 | 2009-04-02 08:33:14 +0200 | [diff] [blame] | 22 | #if defined(CONFIG_AX88796) |
| 23 | extern void colibri_pxa3xx_init_eth(struct ax_plat_data *plat_data); |
| 24 | #endif |
| 25 | |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 26 | /* physical memory regions */ |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 27 | #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */ |
| 28 | |
Daniel Mack | 5fc9f9a | 2009-03-13 16:37:09 +0100 | [diff] [blame] | 29 | /* definitions for Colibri PXA270 */ |
| 30 | |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 31 | #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 Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 36 | |
| 37 | #endif /* _COLIBRI_H_ */ |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 38 | |