2 * Copyright (c) 2014 MediaTek Inc.
3 * Author: Flora Fu, MediaTek
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #ifndef __MFD_MT6397_CORE_H__
16 #define __MFD_MT6397_CORE_H__
18 enum mt6397_irq_numbers
{
19 MT6397_IRQ_SPKL_AB
= 0,
31 MT6397_IRQ_VBATON_UNDET
,
32 MT6397_IRQ_BVALID_DET
,
40 MT6397_IRQ_PWRKEY_RSTB
,
56 struct regmap
*regmap
;
58 struct irq_domain
*irq_domain
;
62 u16 irq_masks_cache
[2];
67 #endif /* __MFD_MT6397_CORE_H__ */