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