1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Intel SoC PMIC Driver
5 * Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
7 * Author: Yang, Bin <bin.yang@intel.com>
8 * Author: Zhu, Lejun <lejun.zhu@linux.intel.com>
11 #ifndef __INTEL_SOC_PMIC_H__
12 #define __INTEL_SOC_PMIC_H__
14 #include <linux/regmap.h>
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
30 struct intel_soc_pmic {
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;
41 struct intel_scu_ipc_dev *scu;
44 int intel_soc_pmic_exec_mipi_pmic_seq_element(u16 i2c_address, u32 reg_address,
47 #endif /* __INTEL_SOC_PMIC_H__ */