blob: ea24998b923c27aed8b13d7aa091368b2f47a7ef [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
22#ifdef CONFIG_CPU_PXA300
23extern 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
32#ifdef CONFIG_CPU_PXA320
33extern 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 */