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 | |
| 6 | /* the following variables are processor specific and initialized |
| 7 | * by the corresponding zylonite_pxa3xx_init() |
| 8 | */ |
| 9 | extern int gpio_backlight; |
| 10 | extern int gpio_eth_irq; |
| 11 | |
| 12 | extern int lcd_id; |
| 13 | extern int lcd_orientation; |
| 14 | |
| 15 | #ifdef CONFIG_CPU_PXA300 |
| 16 | extern void zylonite_pxa300_init(void); |
| 17 | #else |
| 18 | static inline void zylonite_pxa300_init(void) |
| 19 | { |
| 20 | if (cpu_is_pxa300() || cpu_is_pxa310()) |
| 21 | panic("%s: PXA300/PXA310 not supported\n", __FUNCTION__); |
| 22 | } |
| 23 | #endif |
| 24 | |
| 25 | #ifdef CONFIG_CPU_PXA320 |
| 26 | extern void zylonite_pxa320_init(void); |
| 27 | #else |
| 28 | static inline void zylonite_pxa320_init(void) |
| 29 | { |
| 30 | if (cpu_is_pxa320()) |
| 31 | panic("%s: PXA320 not supported\n", __FUNCTION__); |
| 32 | } |
| 33 | #endif |
| 34 | |
| 35 | #endif /* __ASM_ARCH_ZYLONITE_H */ |