Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
44 lines
965 B
C
44 lines
965 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_ARCH_ZYLONITE_H
|
|
#define __ASM_ARCH_ZYLONITE_H
|
|
|
|
#define ZYLONITE_ETH_PHYS 0x14000000
|
|
|
|
#define EXT_GPIO(x) (128 + (x))
|
|
|
|
#define ZYLONITE_NR_IRQS (IRQ_BOARD_START + 32)
|
|
|
|
/* the following variables are processor specific and initialized
|
|
* by the corresponding zylonite_pxa3xx_init()
|
|
*/
|
|
extern int gpio_eth_irq;
|
|
extern int gpio_debug_led1;
|
|
extern int gpio_debug_led2;
|
|
|
|
extern int wm9713_irq;
|
|
|
|
extern int lcd_id;
|
|
extern int lcd_orientation;
|
|
|
|
#ifdef CONFIG_MACH_ZYLONITE300
|
|
extern void zylonite_pxa300_init(void);
|
|
#else
|
|
static inline void zylonite_pxa300_init(void)
|
|
{
|
|
if (cpu_is_pxa300() || cpu_is_pxa310())
|
|
panic("%s: PXA300/PXA310 not supported\n", __func__);
|
|
}
|
|
#endif
|
|
|
|
#ifdef CONFIG_MACH_ZYLONITE320
|
|
extern void zylonite_pxa320_init(void);
|
|
#else
|
|
static inline void zylonite_pxa320_init(void)
|
|
{
|
|
if (cpu_is_pxa320())
|
|
panic("%s: PXA320 not supported\n", __func__);
|
|
}
|
|
#endif
|
|
|
|
#endif /* __ASM_ARCH_ZYLONITE_H */
|