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

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/88pm886.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 #ifndef __MFD_88PM886_H
  3 #define __MFD_88PM886_H
  4 
  5 #include <linux/i2c.h>
  6 #include <linux/regmap.h>
  7 
  8 #define PM886_A1_CHIP_ID                0xa1
  9 
 10 #define PM886_IRQ_ONKEY                 0
 11 
 12 #define PM886_PAGE_OFFSET_REGULATORS    1
 13 
 14 #define PM886_REG_ID                    0x00
 15 
 16 #define PM886_REG_STATUS1               0x01
 17 #define PM886_ONKEY_STS1                BIT(0)
 18 
 19 #define PM886_REG_INT_STATUS1           0x05
 20 
 21 #define PM886_REG_INT_ENA_1             0x0a
 22 #define PM886_INT_ENA1_ONKEY            BIT(0)
 23 
 24 #define PM886_REG_MISC_CONFIG1          0x14
 25 #define PM886_SW_PDOWN                  BIT(5)
 26 
 27 #define PM886_REG_MISC_CONFIG2          0x15
 28 #define PM886_INT_INV                   BIT(0)
 29 #define PM886_INT_CLEAR                 BIT(1)
 30 #define PM886_INT_RC                    0x00
 31 #define PM886_INT_WC                    BIT(1)
 32 #define PM886_INT_MASK_MODE             BIT(2)
 33 
 34 #define PM886_REG_RTC_SPARE6            0xef
 35 
 36 #define PM886_REG_BUCK_EN               0x08
 37 #define PM886_REG_LDO_EN1               0x09
 38 #define PM886_REG_LDO_EN2               0x0a
 39 #define PM886_REG_LDO1_VOUT             0x20
 40 #define PM886_REG_LDO2_VOUT             0x26
 41 #define PM886_REG_LDO3_VOUT             0x2c
 42 #define PM886_REG_LDO4_VOUT             0x32
 43 #define PM886_REG_LDO5_VOUT             0x38
 44 #define PM886_REG_LDO6_VOUT             0x3e
 45 #define PM886_REG_LDO7_VOUT             0x44
 46 #define PM886_REG_LDO8_VOUT             0x4a
 47 #define PM886_REG_LDO9_VOUT             0x50
 48 #define PM886_REG_LDO10_VOUT            0x56
 49 #define PM886_REG_LDO11_VOUT            0x5c
 50 #define PM886_REG_LDO12_VOUT            0x62
 51 #define PM886_REG_LDO13_VOUT            0x68
 52 #define PM886_REG_LDO14_VOUT            0x6e
 53 #define PM886_REG_LDO15_VOUT            0x74
 54 #define PM886_REG_LDO16_VOUT            0x7a
 55 #define PM886_REG_BUCK1_VOUT            0xa5
 56 #define PM886_REG_BUCK2_VOUT            0xb3
 57 #define PM886_REG_BUCK3_VOUT            0xc1
 58 #define PM886_REG_BUCK4_VOUT            0xcf
 59 #define PM886_REG_BUCK5_VOUT            0xdd
 60 
 61 #define PM886_LDO_VSEL_MASK             0x0f
 62 #define PM886_BUCK_VSEL_MASK            0x7f
 63 
 64 struct pm886_chip {
 65         struct i2c_client *client;
 66         unsigned int chip_id;
 67         struct regmap *regmap;
 68 };
 69 #endif /* __MFD_88PM886_H */
 70 

~ [ 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