blob: 9edf645368d65989376ca144a2d49a1fbc2d0f74 [file] [log] [blame]
eric miao2c8086a2007-09-11 19:13:17 -07001#ifndef __ASM_ARCH_ZYLONITE_H
2#define __ASM_ARCH_ZYLONITE_H
3
4#define ZYLONITE_ETH_PHYS 0x14000000
5
Bridge Wufafc9d32007-12-21 19:00:13 +08006#define EXT_GPIO(x) (128 + (x))
7
eric miao2c8086a2007-09-11 19:13:17 -07008/* the following variables are processor specific and initialized
9 * by the corresponding zylonite_pxa3xx_init()
10 */
eric miao2c8086a2007-09-11 19:13:17 -070011extern int gpio_eth_irq;
Eric Miao5c9f50e2008-06-17 19:03:54 +080012extern int gpio_debug_led1;
13extern int gpio_debug_led2;
eric miao2c8086a2007-09-11 19:13:17 -070014
Mark Brown768dec42008-04-15 15:50:49 +010015extern int wm9713_irq;
16
eric miao2c8086a2007-09-11 19:13:17 -070017extern int lcd_id;
18extern int lcd_orientation;
19
20#ifdef CONFIG_CPU_PXA300
21extern void zylonite_pxa300_init(void);
22#else
23static inline void zylonite_pxa300_init(void)
24{
25 if (cpu_is_pxa300() || cpu_is_pxa310())
Harvey Harrison653c0312008-10-20 16:00:08 -070026 panic("%s: PXA300/PXA310 not supported\n", __func__);
eric miao2c8086a2007-09-11 19:13:17 -070027}
28#endif
29
30#ifdef CONFIG_CPU_PXA320
31extern void zylonite_pxa320_init(void);
32#else
33static inline void zylonite_pxa320_init(void)
34{
35 if (cpu_is_pxa320())
Harvey Harrison653c0312008-10-20 16:00:08 -070036 panic("%s: PXA320 not supported\n", __func__);
eric miao2c8086a2007-09-11 19:13:17 -070037}
38#endif
39
40#endif /* __ASM_ARCH_ZYLONITE_H */