Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
eric miao | 2c8086a | 2007-09-11 19:13:17 -0700 | [diff] [blame] | 2 | #ifndef __ASM_ARCH_ZYLONITE_H |
| 3 | #define __ASM_ARCH_ZYLONITE_H |
| 4 | |
| 5 | #define ZYLONITE_ETH_PHYS 0x14000000 |
| 6 | |
Bridge Wu | fafc9d3 | 2007-12-21 19:00:13 +0800 | [diff] [blame] | 7 | #define EXT_GPIO(x) (128 + (x)) |
| 8 | |
Haojian Zhuang | 6ac6b81 | 2010-08-20 15:23:59 +0800 | [diff] [blame] | 9 | #define ZYLONITE_NR_IRQS (IRQ_BOARD_START + 32) |
| 10 | |
eric miao | 2c8086a | 2007-09-11 19:13:17 -0700 | [diff] [blame] | 11 | /* the following variables are processor specific and initialized |
| 12 | * by the corresponding zylonite_pxa3xx_init() |
| 13 | */ |
eric miao | 2c8086a | 2007-09-11 19:13:17 -0700 | [diff] [blame] | 14 | extern int gpio_eth_irq; |
Eric Miao | 5c9f50e | 2008-06-17 19:03:54 +0800 | [diff] [blame] | 15 | extern int gpio_debug_led1; |
| 16 | extern int gpio_debug_led2; |
eric miao | 2c8086a | 2007-09-11 19:13:17 -0700 | [diff] [blame] | 17 | |
Mark Brown | 768dec4 | 2008-04-15 15:50:49 +0100 | [diff] [blame] | 18 | extern int wm9713_irq; |
| 19 | |
eric miao | 2c8086a | 2007-09-11 19:13:17 -0700 | [diff] [blame] | 20 | extern int lcd_id; |
| 21 | extern int lcd_orientation; |
| 22 | |
Arnd Bergmann | ec13592 | 2011-10-01 22:03:37 +0200 | [diff] [blame] | 23 | #ifdef CONFIG_MACH_ZYLONITE300 |
eric miao | 2c8086a | 2007-09-11 19:13:17 -0700 | [diff] [blame] | 24 | extern void zylonite_pxa300_init(void); |
| 25 | #else |
| 26 | static inline void zylonite_pxa300_init(void) |
| 27 | { |
| 28 | if (cpu_is_pxa300() || cpu_is_pxa310()) |
Harvey Harrison | 653c031 | 2008-10-20 16:00:08 -0700 | [diff] [blame] | 29 | panic("%s: PXA300/PXA310 not supported\n", __func__); |
eric miao | 2c8086a | 2007-09-11 19:13:17 -0700 | [diff] [blame] | 30 | } |
| 31 | #endif |
| 32 | |
Arnd Bergmann | ec13592 | 2011-10-01 22:03:37 +0200 | [diff] [blame] | 33 | #ifdef CONFIG_MACH_ZYLONITE320 |
eric miao | 2c8086a | 2007-09-11 19:13:17 -0700 | [diff] [blame] | 34 | extern void zylonite_pxa320_init(void); |
| 35 | #else |
| 36 | static inline void zylonite_pxa320_init(void) |
| 37 | { |
| 38 | if (cpu_is_pxa320()) |
Harvey Harrison | 653c031 | 2008-10-20 16:00:08 -0700 | [diff] [blame] | 39 | panic("%s: PXA320 not supported\n", __func__); |
eric miao | 2c8086a | 2007-09-11 19:13:17 -0700 | [diff] [blame] | 40 | } |
| 41 | #endif |
| 42 | |
| 43 | #endif /* __ASM_ARCH_ZYLONITE_H */ |