kernel_samsung_a34x-permissive/include/linux/mfd/mt6359p/irq.h
2024-04-28 15:49:01 +02:00

21 lines
500 B
C
Executable file

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2021 MediaTek Inc.
*/
#ifndef __MFD_MT6359_IRQ_H__
#define __MFD_MT6359_IRQ_H__
#define SP_TOP_GEN(sp) \
{ \
.hwirq_base = -1, \
.num_int_regs = 1, \
.en_reg = MT6359_##sp##_TOP_INT_CON0, \
.mask_reg = MT6359_##sp##_TOP_INT_MASK_CON0, \
.sta_reg = MT6359_##sp##_TOP_INT_STATUS0, \
.raw_sta_reg = MT6359_##sp##_TOP_INT_RAW_STATUS0, \
.top_offset = PMIC_INT_STATUS_##sp##_TOP_SHIFT, \
}
#endif /* __MFD_MT6359_IRQ_H__ */