0001
0002 #ifndef __ASM_ARCH_ZYLONITE_H
0003 #define __ASM_ARCH_ZYLONITE_H
0004
0005 #include <linux/soc/pxa/cpu.h>
0006
0007 #define ZYLONITE_ETH_PHYS 0x14000000
0008
0009 #define EXT_GPIO(x) (128 + (x))
0010
0011 #define ZYLONITE_NR_IRQS (IRQ_BOARD_START + 32)
0012
0013
0014
0015
0016 extern int gpio_eth_irq;
0017 extern int gpio_debug_led1;
0018 extern int gpio_debug_led2;
0019
0020 extern int wm9713_irq;
0021
0022 extern int lcd_id;
0023 extern int lcd_orientation;
0024
0025 #ifdef CONFIG_MACH_ZYLONITE300
0026 extern void zylonite_pxa300_init(void);
0027 #else
0028 static inline void zylonite_pxa300_init(void)
0029 {
0030 if (cpu_is_pxa300() || cpu_is_pxa310())
0031 panic("%s: PXA300/PXA310 not supported\n", __func__);
0032 }
0033 #endif
0034
0035 #ifdef CONFIG_MACH_ZYLONITE320
0036 extern void zylonite_pxa320_init(void);
0037 #else
0038 static inline void zylonite_pxa320_init(void)
0039 {
0040 if (cpu_is_pxa320())
0041 panic("%s: PXA320 not supported\n", __func__);
0042 }
0043 #endif
0044
0045 #endif