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)
28 lines
749 B
C
28 lines
749 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* contains some Q40 related interrupt definitions
|
|
*/
|
|
|
|
#define Q40_IRQ_MAX (34)
|
|
|
|
#define Q40_IRQ_SAMPLE (34)
|
|
#define Q40_IRQ_KEYBOARD (32)
|
|
#define Q40_IRQ_FRAME (33)
|
|
|
|
|
|
/* masks for interrupt regiosters*/
|
|
/* internal, IIRQ_REG */
|
|
#define Q40_IRQ_KEYB_MASK (2)
|
|
#define Q40_IRQ_SER_MASK (1<<2)
|
|
#define Q40_IRQ_FRAME_MASK (1<<3)
|
|
#define Q40_IRQ_EXT_MASK (1<<4) /* is a EIRQ */
|
|
/* eirq, EIRQ_REG */
|
|
#define Q40_IRQ3_MASK (1)
|
|
#define Q40_IRQ4_MASK (1<<1)
|
|
#define Q40_IRQ5_MASK (1<<2)
|
|
#define Q40_IRQ6_MASK (1<<3)
|
|
#define Q40_IRQ7_MASK (1<<4)
|
|
#define Q40_IRQ10_MASK (1<<5)
|
|
#define Q40_IRQ14_MASK (1<<6)
|
|
#define Q40_IRQ15_MASK (1<<7)
|