Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 1 | #ifndef _COLIBRI_H_ |
| 2 | #define _COLIBRI_H_ |
Daniel Mack | 5fc9f9a | 2009-03-13 16:37:09 +0100 | [diff] [blame] | 3 | /* |
| 4 | * common settings for all modules |
| 5 | */ |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 6 | |
Daniel Mack | acb3655 | 2009-03-23 02:04:17 +0100 | [diff] [blame] | 7 | #if defined(CONFIG_MMC_PXA) || defined(CONFIG_MMC_PXA_MODULE) |
| 8 | extern void colibri_pxa3xx_init_mmc(mfp_cfg_t *pins, int len, int detect_pin); |
| 9 | #else |
| 10 | static inline void colibri_pxa3xx_init_mmc(mfp_cfg_t *, int, int) {} |
| 11 | #endif |
| 12 | |
Daniel Mack | 91fcfb9 | 2009-03-23 02:04:19 +0100 | [diff] [blame^] | 13 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) |
| 14 | extern void colibri_pxa3xx_init_lcd(int bl_pin); |
| 15 | #else |
| 16 | static inline void colibri_pxa3xx_init_lcd(int) {} |
| 17 | #endif |
| 18 | |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 19 | /* physical memory regions */ |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 20 | #define COLIBRI_SDRAM_BASE 0xa0000000 /* SDRAM region */ |
| 21 | |
Daniel Mack | 5fc9f9a | 2009-03-13 16:37:09 +0100 | [diff] [blame] | 22 | /* definitions for Colibri PXA270 */ |
| 23 | |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 24 | #define COLIBRI_PXA270_FLASH_PHYS (PXA_CS0_PHYS) /* Flash region */ |
| 25 | #define COLIBRI_PXA270_ETH_PHYS (PXA_CS2_PHYS) /* Ethernet */ |
| 26 | #define COLIBRI_PXA270_ETH_IRQ_GPIO 114 |
| 27 | #define COLIBRI_PXA270_ETH_IRQ \ |
| 28 | gpio_to_irq(mfp_to_gpio(COLIBRI_PXA270_ETH_IRQ_GPIO)) |
Daniel Mack | 4e4fc05 | 2008-01-23 14:54:50 +0100 | [diff] [blame] | 29 | |
| 30 | #endif /* _COLIBRI_H_ */ |
Daniel Mack | 5c0dbb8 | 2009-03-13 16:37:08 +0100 | [diff] [blame] | 31 | |