.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
---|
1 | 2 | /* |
---|
2 | | - * intel_soc_pmic.h - Intel SoC PMIC Driver |
---|
| 3 | + * Intel SoC PMIC Driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2012-2014 Intel Corporation. All rights reserved. |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or |
---|
7 | | - * modify it under the terms of the GNU General Public License version |
---|
8 | | - * 2 as published by the Free Software Foundation. |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope that it will be useful, |
---|
11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | | - * GNU General Public License for more details. |
---|
14 | 6 | * |
---|
15 | 7 | * Author: Yang, Bin <bin.yang@intel.com> |
---|
16 | 8 | * Author: Zhu, Lejun <lejun.zhu@linux.intel.com> |
---|
.. | .. |
---|
21 | 13 | |
---|
22 | 14 | #include <linux/regmap.h> |
---|
23 | 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 | + */ |
---|
24 | 30 | struct intel_soc_pmic { |
---|
25 | 31 | int irq; |
---|
26 | 32 | struct regmap *regmap; |
---|
.. | .. |
---|
32 | 38 | struct regmap_irq_chip_data *irq_chip_data_chgr; |
---|
33 | 39 | struct regmap_irq_chip_data *irq_chip_data_crit; |
---|
34 | 40 | struct device *dev; |
---|
| 41 | + struct intel_scu_ipc_dev *scu; |
---|
35 | 42 | }; |
---|
36 | 43 | |
---|
| 44 | +int intel_soc_pmic_exec_mipi_pmic_seq_element(u16 i2c_address, u32 reg_address, |
---|
| 45 | + u32 value, u32 mask); |
---|
| 46 | + |
---|
37 | 47 | #endif /* __INTEL_SOC_PMIC_H__ */ |
---|