eric miao | 2c8086a | 2007-09-11 19:13:17 -0700 | [diff] [blame] | 1 | #ifndef __ASM_ARCH_ZYLONITE_H |
| 2 | #define __ASM_ARCH_ZYLONITE_H |
| 3 | |
| 4 | #define ZYLONITE_ETH_PHYS 0x14000000 |
| 5 | |
Bridge Wu | fafc9d3 | 2007-12-21 19:00:13 +0800 | [diff] [blame] | 6 | #define EXT_GPIO(x) (128 + (x)) |
| 7 | |
eric miao | 2c8086a | 2007-09-11 19:13:17 -0700 | [diff] [blame] | 8 | /* the following variables are processor specific and initialized |
| 9 | * by the corresponding zylonite_pxa3xx_init() |
| 10 | */ |
Bridge Wu | fafc9d3 | 2007-12-21 19:00:13 +0800 | [diff] [blame] | 11 | struct platform_mmc_slot { |
| 12 | int gpio_cd; |
| 13 | int gpio_wp; |
| 14 | }; |
| 15 | |
| 16 | extern struct platform_mmc_slot zylonite_mmc_slot[]; |
| 17 | |
eric miao | 2c8086a | 2007-09-11 19:13:17 -0700 | [diff] [blame] | 18 | extern int gpio_backlight; |
| 19 | extern int gpio_eth_irq; |
| 20 | |
| 21 | extern int lcd_id; |
| 22 | extern int lcd_orientation; |
| 23 | |
| 24 | #ifdef CONFIG_CPU_PXA300 |
| 25 | extern void zylonite_pxa300_init(void); |
| 26 | #else |
| 27 | static inline void zylonite_pxa300_init(void) |
| 28 | { |
| 29 | if (cpu_is_pxa300() || cpu_is_pxa310()) |
| 30 | panic("%s: PXA300/PXA310 not supported\n", __FUNCTION__); |
| 31 | } |
| 32 | #endif |
| 33 | |
| 34 | #ifdef CONFIG_CPU_PXA320 |
| 35 | extern void zylonite_pxa320_init(void); |
| 36 | #else |
| 37 | static inline void zylonite_pxa320_init(void) |
| 38 | { |
| 39 | if (cpu_is_pxa320()) |
| 40 | panic("%s: PXA320 not supported\n", __FUNCTION__); |
| 41 | } |
| 42 | #endif |
| 43 | |
| 44 | #endif /* __ASM_ARCH_ZYLONITE_H */ |