1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __ASM_ARCH_ZYLONITE_H 3#define __ASM_ARCH_ZYLONITE_H 4 5#define ZYLONITE_ETH_PHYS 0x14000000 6 7#define EXT_GPIO(x) (128 + (x)) 8 9#define ZYLONITE_NR_IRQS (IRQ_BOARD_START + 32) 10 11/* the following variables are processor specific and initialized 12 * by the corresponding zylonite_pxa3xx_init() 13 */ 14extern int gpio_eth_irq; 15extern int gpio_debug_led1; 16extern int gpio_debug_led2; 17 18extern int wm9713_irq; 19 20extern int lcd_id; 21extern int lcd_orientation; 22 23#ifdef CONFIG_MACH_ZYLONITE300 24extern void zylonite_pxa300_init(void); 25#else 26static inline void zylonite_pxa300_init(void) 27{ 28 if (cpu_is_pxa300() || cpu_is_pxa310()) 29 panic("%s: PXA300/PXA310 not supported\n", __func__); 30} 31#endif 32 33#ifdef CONFIG_MACH_ZYLONITE320 34extern void zylonite_pxa320_init(void); 35#else 36static inline void zylonite_pxa320_init(void) 37{ 38 if (cpu_is_pxa320()) 39 panic("%s: PXA320 not supported\n", __func__); 40} 41#endif 42 43#endif /* __ASM_ARCH_ZYLONITE_H */ 44