blob: ecca976f03d21e94a7cea73f825f6e029cb9a64b [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
Haojian Zhuang6ac6b812010-08-20 15:23:59 +08008#define ZYLONITE_NR_IRQS (IRQ_BOARD_START + 32)
9
eric miao2c8086a2007-09-11 19:13:17 -070010/* the following variables are processor specific and initialized
11 * by the corresponding zylonite_pxa3xx_init()
12 */
eric miao2c8086a2007-09-11 19:13:17 -070013extern int gpio_eth_irq;
Eric Miao5c9f50e2008-06-17 19:03:54 +080014extern int gpio_debug_led1;
15extern int gpio_debug_led2;
eric miao2c8086a2007-09-11 19:13:17 -070016
Mark Brown768dec42008-04-15 15:50:49 +010017extern int wm9713_irq;
18
eric miao2c8086a2007-09-11 19:13:17 -070019extern int lcd_id;
20extern int lcd_orientation;
21
Arnd Bergmannec135922011-10-01 22:03:37 +020022#ifdef CONFIG_MACH_ZYLONITE300
eric miao2c8086a2007-09-11 19:13:17 -070023extern void zylonite_pxa300_init(void);
24#else
25static inline void zylonite_pxa300_init(void)
26{
27 if (cpu_is_pxa300() || cpu_is_pxa310())
Harvey Harrison653c0312008-10-20 16:00:08 -070028 panic("%s: PXA300/PXA310 not supported\n", __func__);
eric miao2c8086a2007-09-11 19:13:17 -070029}
30#endif
31
Arnd Bergmannec135922011-10-01 22:03:37 +020032#ifdef CONFIG_MACH_ZYLONITE320
eric miao2c8086a2007-09-11 19:13:17 -070033extern void zylonite_pxa320_init(void);
34#else
35static inline void zylonite_pxa320_init(void)
36{
37 if (cpu_is_pxa320())
Harvey Harrison653c0312008-10-20 16:00:08 -070038 panic("%s: PXA320 not supported\n", __func__);
eric miao2c8086a2007-09-11 19:13:17 -070039}
40#endif
41
42#endif /* __ASM_ARCH_ZYLONITE_H */