blob: 7300ec2aac0d43b8944aaa36ee6d36170c3b6452 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
eric miao2c8086a2007-09-11 19:13:17 -07002#ifndef __ASM_ARCH_ZYLONITE_H
3#define __ASM_ARCH_ZYLONITE_H
4
5#define ZYLONITE_ETH_PHYS 0x14000000
6
Bridge Wufafc9d32007-12-21 19:00:13 +08007#define EXT_GPIO(x) (128 + (x))
8
Haojian Zhuang6ac6b812010-08-20 15:23:59 +08009#define ZYLONITE_NR_IRQS (IRQ_BOARD_START + 32)
10
eric miao2c8086a2007-09-11 19:13:17 -070011/* the following variables are processor specific and initialized
12 * by the corresponding zylonite_pxa3xx_init()
13 */
eric miao2c8086a2007-09-11 19:13:17 -070014extern int gpio_eth_irq;
Eric Miao5c9f50e2008-06-17 19:03:54 +080015extern int gpio_debug_led1;
16extern int gpio_debug_led2;
eric miao2c8086a2007-09-11 19:13:17 -070017
Mark Brown768dec42008-04-15 15:50:49 +010018extern int wm9713_irq;
19
eric miao2c8086a2007-09-11 19:13:17 -070020extern int lcd_id;
21extern int lcd_orientation;
22
Arnd Bergmannec135922011-10-01 22:03:37 +020023#ifdef CONFIG_MACH_ZYLONITE300
eric miao2c8086a2007-09-11 19:13:17 -070024extern void zylonite_pxa300_init(void);
25#else
26static inline void zylonite_pxa300_init(void)
27{
28 if (cpu_is_pxa300() || cpu_is_pxa310())
Harvey Harrison653c0312008-10-20 16:00:08 -070029 panic("%s: PXA300/PXA310 not supported\n", __func__);
eric miao2c8086a2007-09-11 19:13:17 -070030}
31#endif
32
Arnd Bergmannec135922011-10-01 22:03:37 +020033#ifdef CONFIG_MACH_ZYLONITE320
eric miao2c8086a2007-09-11 19:13:17 -070034extern void zylonite_pxa320_init(void);
35#else
36static inline void zylonite_pxa320_init(void)
37{
38 if (cpu_is_pxa320())
Harvey Harrison653c0312008-10-20 16:00:08 -070039 panic("%s: PXA320 not supported\n", __func__);
eric miao2c8086a2007-09-11 19:13:17 -070040}
41#endif
42
43#endif /* __ASM_ARCH_ZYLONITE_H */