Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /usr/src/linux-headers-4.4.0-116/include/linux/mfd/mt6397/ |
Upload File : |
/* * Copyright (c) 2014 MediaTek Inc. * Author: Flora Fu, MediaTek * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef __MFD_MT6397_CORE_H__ #define __MFD_MT6397_CORE_H__ enum mt6397_irq_numbers { MT6397_IRQ_SPKL_AB = 0, MT6397_IRQ_SPKR_AB, MT6397_IRQ_SPKL, MT6397_IRQ_SPKR, MT6397_IRQ_BAT_L, MT6397_IRQ_BAT_H, MT6397_IRQ_FG_BAT_L, MT6397_IRQ_FG_BAT_H, MT6397_IRQ_WATCHDOG, MT6397_IRQ_PWRKEY, MT6397_IRQ_THR_L, MT6397_IRQ_THR_H, MT6397_IRQ_VBATON_UNDET, MT6397_IRQ_BVALID_DET, MT6397_IRQ_CHRDET, MT6397_IRQ_OV, MT6397_IRQ_LDO, MT6397_IRQ_HOMEKEY, MT6397_IRQ_ACCDET, MT6397_IRQ_AUDIO, MT6397_IRQ_RTC, MT6397_IRQ_PWRKEY_RSTB, MT6397_IRQ_HDMI_SIFM, MT6397_IRQ_HDMI_CEC, MT6397_IRQ_VCA15, MT6397_IRQ_VSRMCA15, MT6397_IRQ_VCORE, MT6397_IRQ_VGPU, MT6397_IRQ_VIO18, MT6397_IRQ_VPCA7, MT6397_IRQ_VSRMCA7, MT6397_IRQ_VDRM, MT6397_IRQ_NR, }; struct mt6397_chip { struct device *dev; struct regmap *regmap; int irq; struct irq_domain *irq_domain; struct mutex irqlock; u16 wake_mask[2]; u16 irq_masks_cur[2]; u16 irq_masks_cache[2]; }; #endif /* __MFD_MT6397_CORE_H__ */