~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/mt6332/core.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * Copyright (c) 2022 AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
  4  */
  5 
  6 #ifndef __MFD_MT6332_CORE_H__
  7 #define __MFD_MT6332_CORE_H__
  8 
  9 enum mt6332_irq_status_numbers {
 10         MT6332_IRQ_STATUS_CHR_COMPLETE = 0,
 11         MT6332_IRQ_STATUS_THERMAL_SD,
 12         MT6332_IRQ_STATUS_THERMAL_REG_IN,
 13         MT6332_IRQ_STATUS_THERMAL_REG_OUT,
 14         MT6332_IRQ_STATUS_OTG_OC,
 15         MT6332_IRQ_STATUS_CHR_OC,
 16         MT6332_IRQ_STATUS_OTG_THERMAL,
 17         MT6332_IRQ_STATUS_CHRIN_SHORT,
 18         MT6332_IRQ_STATUS_DRVCDT_SHORT,
 19         MT6332_IRQ_STATUS_PLUG_IN_FLASH,
 20         MT6332_IRQ_STATUS_CHRWDT_FLAG,
 21         MT6332_IRQ_STATUS_FLASH_EN_TIMEOUT,
 22         MT6332_IRQ_STATUS_FLASH_VLED1_SHORT,
 23         MT6332_IRQ_STATUS_FLASH_VLED1_OPEN = 13,
 24         MT6332_IRQ_STATUS_OV = 16,
 25         MT6332_IRQ_STATUS_BVALID_DET,
 26         MT6332_IRQ_STATUS_VBATON_UNDET,
 27         MT6332_IRQ_STATUS_CHR_PLUG_IN,
 28         MT6332_IRQ_STATUS_CHR_PLUG_OUT,
 29         MT6332_IRQ_STATUS_BC11_TIMEOUT,
 30         MT6332_IRQ_STATUS_FLASH_VLED2_SHORT,
 31         MT6332_IRQ_STATUS_FLASH_VLED2_OPEN = 23,
 32         MT6332_IRQ_STATUS_THR_H = 32,
 33         MT6332_IRQ_STATUS_THR_L,
 34         MT6332_IRQ_STATUS_BAT_H,
 35         MT6332_IRQ_STATUS_BAT_L,
 36         MT6332_IRQ_STATUS_M3_H,
 37         MT6332_IRQ_STATUS_M3_L,
 38         MT6332_IRQ_STATUS_FG_BAT_H,
 39         MT6332_IRQ_STATUS_FG_BAT_L,
 40         MT6332_IRQ_STATUS_FG_CUR_H,
 41         MT6332_IRQ_STATUS_FG_CUR_L,
 42         MT6332_IRQ_STATUS_SPKL_D,
 43         MT6332_IRQ_STATUS_SPKL_AB,
 44         MT6332_IRQ_STATUS_BIF,
 45         MT6332_IRQ_STATUS_VWLED_OC = 45,
 46         MT6332_IRQ_STATUS_VDRAM_OC = 48,
 47         MT6332_IRQ_STATUS_VDVFS2_OC,
 48         MT6332_IRQ_STATUS_VRF1_OC,
 49         MT6332_IRQ_STATUS_VRF2_OC,
 50         MT6332_IRQ_STATUS_VPA_OC,
 51         MT6332_IRQ_STATUS_VSBST_OC,
 52         MT6332_IRQ_STATUS_LDO_OC,
 53         MT6332_IRQ_STATUS_NR,
 54 };
 55 
 56 #define MT6332_IRQ_CON0_BASE    MT6332_IRQ_STATUS_CHR_COMPLETE
 57 #define MT6332_IRQ_CON0_BITS    (MT6332_IRQ_STATUS_FLASH_VLED1_OPEN + 1)
 58 #define MT6332_IRQ_CON1_BASE    MT6332_IRQ_STATUS_OV
 59 #define MT6332_IRQ_CON1_BITS    (MT6332_IRQ_STATUS_FLASH_VLED2_OPEN - MT6332_IRQ_STATUS_OV + 1)
 60 #define MT6332_IRQ_CON2_BASE    MT6332_IRQ_STATUS_THR_H
 61 #define MT6332_IRQ_CON2_BITS    (MT6332_IRQ_STATUS_VWLED_OC - MT6332_IRQ_STATUS_THR_H + 1)
 62 #define MT6332_IRQ_CON3_BASE    MT6332_IRQ_STATUS_VDRAM_OC
 63 #define MT6332_IRQ_CON3_BITS    (MT6332_IRQ_STATUS_LDO_OC - MT6332_IRQ_STATUS_VDRAM_OC + 1)
 64 
 65 #endif /* __MFD_MT6332_CORE_H__ */
 66 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php