hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/linux/mfd/intel_soc_pmic.h
....@@ -1,16 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0 */
12 /*
2
- * intel_soc_pmic.h - Intel SoC PMIC Driver
3
+ * Intel SoC PMIC Driver
34 *
45 * 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.
146 *
157 * Author: Yang, Bin <bin.yang@intel.com>
168 * Author: Zhu, Lejun <lejun.zhu@linux.intel.com>
....@@ -21,6 +13,20 @@
2113
2214 #include <linux/regmap.h>
2315
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
+ */
2430 struct intel_soc_pmic {
2531 int irq;
2632 struct regmap *regmap;
....@@ -32,6 +38,10 @@
3238 struct regmap_irq_chip_data *irq_chip_data_chgr;
3339 struct regmap_irq_chip_data *irq_chip_data_crit;
3440 struct device *dev;
41
+ struct intel_scu_ipc_dev *scu;
3542 };
3643
44
+int intel_soc_pmic_exec_mipi_pmic_seq_element(u16 i2c_address, u32 reg_address,
45
+ u32 value, u32 mask);
46
+
3747 #endif /* __INTEL_SOC_PMIC_H__ */