Commit | Line | Data |
---|---|---|
2c8086a5 | 1 | #ifndef __ASM_ARCH_ZYLONITE_H |
2 | #define __ASM_ARCH_ZYLONITE_H | |
3 | ||
4 | #define ZYLONITE_ETH_PHYS 0x14000000 | |
5 | ||
fafc9d3f BW |
6 | #define EXT_GPIO(x) (128 + (x)) |
7 | ||
2c8086a5 | 8 | /* the following variables are processor specific and initialized |
9 | * by the corresponding zylonite_pxa3xx_init() | |
10 | */ | |
2c8086a5 | 11 | extern int gpio_eth_irq; |
5c9f50e9 EM |
12 | extern int gpio_debug_led1; |
13 | extern int gpio_debug_led2; | |
2c8086a5 | 14 | |
768dec4c MB |
15 | extern int wm9713_irq; |
16 | ||
2c8086a5 | 17 | extern int lcd_id; |
18 | extern int lcd_orientation; | |
19 | ||
20 | #ifdef CONFIG_CPU_PXA300 | |
21 | extern void zylonite_pxa300_init(void); | |
22 | #else | |
23 | static inline void zylonite_pxa300_init(void) | |
24 | { | |
25 | if (cpu_is_pxa300() || cpu_is_pxa310()) | |
653c0316 | 26 | panic("%s: PXA300/PXA310 not supported\n", __func__); |
2c8086a5 | 27 | } |
28 | #endif | |
29 | ||
30 | #ifdef CONFIG_CPU_PXA320 | |
31 | extern void zylonite_pxa320_init(void); | |
32 | #else | |
33 | static inline void zylonite_pxa320_init(void) | |
34 | { | |
35 | if (cpu_is_pxa320()) | |
653c0316 | 36 | panic("%s: PXA320 not supported\n", __func__); |
2c8086a5 | 37 | } |
38 | #endif | |
39 | ||
40 | #endif /* __ASM_ARCH_ZYLONITE_H */ |