blob: 0d35ca04731e485fa655c5dccd087c59fd58fb0d [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 */
Bridge Wufafc9d32007-12-21 19:00:13 +080011struct platform_mmc_slot {
12 int gpio_cd;
13 int gpio_wp;
14};
15
16extern struct platform_mmc_slot zylonite_mmc_slot[];
17
eric miao2c8086a2007-09-11 19:13:17 -070018extern int gpio_eth_irq;
Eric Miao5c9f50e2008-06-17 19:03:54 +080019extern int gpio_debug_led1;
20extern int gpio_debug_led2;
eric miao2c8086a2007-09-11 19:13:17 -070021
Mark Brown768dec42008-04-15 15:50:49 +010022extern int wm9713_irq;
23
eric miao2c8086a2007-09-11 19:13:17 -070024extern int lcd_id;
25extern int lcd_orientation;
26
27#ifdef CONFIG_CPU_PXA300
28extern void zylonite_pxa300_init(void);
29#else
30static inline void zylonite_pxa300_init(void)
31{
32 if (cpu_is_pxa300() || cpu_is_pxa310())
33 panic("%s: PXA300/PXA310 not supported\n", __FUNCTION__);
34}
35#endif
36
37#ifdef CONFIG_CPU_PXA320
38extern void zylonite_pxa320_init(void);
39#else
40static inline void zylonite_pxa320_init(void)
41{
42 if (cpu_is_pxa320())
43 panic("%s: PXA320 not supported\n", __FUNCTION__);
44}
45#endif
46
47#endif /* __ASM_ARCH_ZYLONITE_H */