Merge tag 'mm-slub-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka...
[linux-2.6-microblaze.git] / include / linux / mfd / intel_soc_pmic.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Intel SoC PMIC Driver
4  *
5  * Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
6  *
7  * Author: Yang, Bin <bin.yang@intel.com>
8  * Author: Zhu, Lejun <lejun.zhu@linux.intel.com>
9  */
10
11 #ifndef __INTEL_SOC_PMIC_H__
12 #define __INTEL_SOC_PMIC_H__
13
14 #include <linux/regmap.h>
15
16 /**
17  * struct intel_soc_pmic - Intel SoC PMIC data
18  * @irq: Master interrupt number of the parent PMIC device
19  * @regmap: Pointer to the parent PMIC device regmap structure
20  * @irq_chip_data: IRQ chip data for the PMIC itself
21  * @irq_chip_data_pwrbtn: Chained IRQ chip data for the Power Button
22  * @irq_chip_data_tmu: Chained IRQ chip data for the Time Management Unit
23  * @irq_chip_data_bcu: Chained IRQ chip data for the Burst Control Unit
24  * @irq_chip_data_adc: Chained IRQ chip data for the General Purpose ADC
25  * @irq_chip_data_chgr: Chained IRQ chip data for the External Charger
26  * @irq_chip_data_crit: Chained IRQ chip data for the Critical Event Handler
27  * @dev: Pointer to the parent PMIC device
28  * @scu: Pointer to the SCU IPC device data structure
29  */
30 struct intel_soc_pmic {
31         int irq;
32         struct regmap *regmap;
33         struct regmap_irq_chip_data *irq_chip_data;
34         struct regmap_irq_chip_data *irq_chip_data_pwrbtn;
35         struct regmap_irq_chip_data *irq_chip_data_tmu;
36         struct regmap_irq_chip_data *irq_chip_data_bcu;
37         struct regmap_irq_chip_data *irq_chip_data_adc;
38         struct regmap_irq_chip_data *irq_chip_data_chgr;
39         struct regmap_irq_chip_data *irq_chip_data_crit;
40         struct device *dev;
41         struct intel_scu_ipc_dev *scu;
42 };
43
44 int intel_soc_pmic_exec_mipi_pmic_seq_element(u16 i2c_address, u32 reg_address,
45                                               u32 value, u32 mask);
46
47 #endif  /* __INTEL_SOC_PMIC_H__ */