mfd: add Intel Broxton Whiskey Cove PMIC driver
PATCH v4 1/1 mfd: add Intel Broxton Whiskey Cove PMIC driver
From: "qipeng.zha" <[email protected]>
Add MFD core driver for Intel Broxton Whiskey Cove PMIC, which is specially accessed by hardware IPC, not a generic I2C device
Signed-off-by qipeng.zha <[email protected]>
---
change in v4
add compile dependency to PMC IPC driver in Makefile, or will
use NULL stubs defined in PMC IPC header file;
change in v3
implement ipc regmap r/w callback in pmic driver, since there dropped
before patch of implement virtual ipc support in regmap core;
update some function's comment;
--- drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_bxtwc.c | 529 +++++++++++++++++++++++++++++++++++++ include/linux/mfd/intel_bxtwc.h | 69 +++++ include/linux/mfd/intel_soc_pmic.h | 3 + 4 files changed, 602 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_bxtwc.c create mode 100644 include/linux/mfd/intel_bxtwc.h
drivers/mfd/Makefile +1 -0
@@ -183,5 +183,6 @@ obj-$(CONFIG_MFD_RT5033) += rt5033.o obj-$(CONFIG_MFD_SKY81452) += sky81452.o intel-soc-pmic-objs := intel_soc_pmic_core.o intel_soc_pmic_crc.o +intel-soc-pmic-$(CONFIG_INTEL_PMC_IPC) += intel_soc_pmic_bxtwc.o obj-$(CONFIG_INTEL_SOC_PMIC) += intel-soc-pmic.o obj-$(CONFIG_MFD_MT6397) += mt6397-core.o
drivers/mfd/intel_soc_pmic_bxtwc.c new file +529 -0
529 lines not on this page · raw message
include/linux/mfd/intel_bxtwc.h new file +69 -0
69 lines not on this page · raw message
include/linux/mfd/intel_soc_pmic.h +3 -0
@@ -25,6 +25,9 @@ struct intel_soc_pmic {int irq;struct regmap *regmap;struct regmap_irq_chip_data *irq_chip_data; +struct regmap_irq_chip_data *irq_chip_data_level2; +struct device *dev; + int default_i2c_addr; };#endif /* __INTEL_SOC_PMIC_H__ */
Signature · 1 line
1.8.3.2