1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 2 3 #ifndef __MFD_MAX77541_H 4 #define __MFD_MAX77541_H 5 6 #include <linux/bits.h> 7 #include <linux/types.h> 8 9 /* REGISTERS */ 10 #define MAX77541_REG_INT_SRC 11 #define MAX77541_REG_INT_SRC_M 12 13 #define MAX77541_BIT_INT_SRC_TOPSYS 14 #define MAX77541_BIT_INT_SRC_BUCK 15 16 #define MAX77541_REG_TOPSYS_INT 17 #define MAX77541_REG_TOPSYS_INT_M 18 19 #define MAX77541_BIT_TOPSYS_INT_TJ_120C 20 #define MAX77541_BIT_TOPSYS_INT_TJ_140C 21 #define MAX77541_BIT_TOPSYS_INT_TSHDN 22 #define MAX77541_BIT_TOPSYS_INT_UVLO 23 #define MAX77541_BIT_TOPSYS_INT_ALT_SWO 24 #define MAX77541_BIT_TOPSYS_INT_EXT_FREQ_DET 25 26 /* REGULATORS */ 27 #define MAX77541_REG_BUCK_INT 28 #define MAX77541_REG_BUCK_INT_M 29 30 #define MAX77541_BIT_BUCK_INT_M1_POK_FLT 31 #define MAX77541_BIT_BUCK_INT_M2_POK_FLT 32 #define MAX77541_BIT_BUCK_INT_M1_SCFLT 33 #define MAX77541_BIT_BUCK_INT_M2_SCFLT 34 35 #define MAX77541_REG_EN_CTRL 36 37 #define MAX77541_BIT_M1_EN 38 #define MAX77541_BIT_M2_EN 39 40 #define MAX77541_REG_M1_VOUT 41 #define MAX77541_REG_M2_VOUT 42 43 #define MAX77541_BITS_MX_VOUT 44 45 #define MAX77541_REG_M1_CFG1 46 #define MAX77541_REG_M2_CFG1 47 48 #define MAX77541_BITS_MX_CFG1_RNG 49 50 /* ADC */ 51 #define MAX77541_REG_ADC_INT 52 #define MAX77541_REG_ADC_INT_M 53 54 #define MAX77541_BIT_ADC_INT_CH1_I 55 #define MAX77541_BIT_ADC_INT_CH2_I 56 #define MAX77541_BIT_ADC_INT_CH3_I 57 #define MAX77541_BIT_ADC_INT_CH6_I 58 59 #define MAX77541_REG_ADC_DATA_CH1 60 #define MAX77541_REG_ADC_DATA_CH2 61 #define MAX77541_REG_ADC_DATA_CH3 62 #define MAX77541_REG_ADC_DATA_CH6 63 64 /* INTERRUPT MASKS*/ 65 #define MAX77541_REG_INT_SRC_MASK 66 #define MAX77541_REG_TOPSYS_INT_MASK 67 #define MAX77541_REG_BUCK_INT_MASK 68 69 #define MAX77541_MAX_REGULATORS 2 70 71 enum max7754x_ids { 72 MAX77540 = 1, 73 MAX77541, 74 }; 75 76 struct regmap; 77 struct regmap_irq_chip_data; 78 struct i2c_client; 79 80 struct max77541 { 81 struct i2c_client *i2c; 82 struct regmap *regmap; 83 enum max7754x_ids id; 84 85 struct regmap_irq_chip_data *irq_data; 86 struct regmap_irq_chip_data *irq_buck; 87 struct regmap_irq_chip_data *irq_topsy 88 struct regmap_irq_chip_data *irq_adc; 89 }; 90 91 #endif /* __MFD_MAX77541_H */ 92
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.