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