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 | */ | |
fafc9d3f BW |
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 | ||
2c8086a5 | 18 | extern int gpio_eth_irq; |
19 | ||
768dec4c MB |
20 | extern int wm9713_irq; |
21 | ||
2c8086a5 | 22 | extern int lcd_id; |
23 | extern int lcd_orientation; | |
24 | ||
25 | #ifdef CONFIG_CPU_PXA300 | |
26 | extern void zylonite_pxa300_init(void); | |
27 | #else | |
28 | static inline void zylonite_pxa300_init(void) | |
29 | { | |
30 | if (cpu_is_pxa300() || cpu_is_pxa310()) | |
31 | panic("%s: PXA300/PXA310 not supported\n", __FUNCTION__); | |
32 | } | |
33 | #endif | |
34 | ||
35 | #ifdef CONFIG_CPU_PXA320 | |
36 | extern void zylonite_pxa320_init(void); | |
37 | #else | |
38 | static inline void zylonite_pxa320_init(void) | |
39 | { | |
40 | if (cpu_is_pxa320()) | |
41 | panic("%s: PXA320 not supported\n", __FUNCTION__); | |
42 | } | |
43 | #endif | |
44 | ||
45 | #endif /* __ASM_ARCH_ZYLONITE_H */ |