kernel_samsung_a34x-permissive/include/linux/mfd/mt6357/irq.h

21 lines
502 B
C
Raw Permalink Normal View History

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