mfd: update Intel soc PMIC header file to support Broxton WC PMIC
PATCH v5 1/2 mfd: update Intel soc PMIC header file to support Broxton WC PMIC
IRQ control registers of Intel Broxton Whisky Cove PMIC are separated in two parts, so add secondary IRQ chip.
And the new member of device will be used in PMC IPC regmap APIs.
--- include/linux/mfd/intel_soc_pmic.h | 5 +++++ 1 file changed, 5 insertions(+)
include/linux/mfd/intel_soc_pmic.h +5 -0
@@ -21,10 +21,15 @@#include <linux/regmap.h> +#define INIT_REGMAP_IRQ (_irq, _off, _mask) \ + [_irq] = { .reg_offset = (_off), .mask = (_mask) } +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; };#endif /* __INTEL_SOC_PMIC_H__ */
Signature · 1 line
1.8.3.2
PATCH v5 2/2 mfd: add Intel Broxton Whiskey Cove PMIC driver
Add MFD core driver for Intel Broxton Whiskey Cove PMIC, which is specially accessed by hardware IPC, not a generic I2C device
---
change in v5
Fix issues in code style, espcially make error messages readable; Put regmap_irq macro in header file and separate into two patch; Use DEFFINE_RES_IRQ to define irq resource;
Remove default_i2c_addr and use macro directly;
Change platform driver name to make it more readable;
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 | 477 +++++++++++++++++++++++++++++++++++++ include/linux/mfd/intel_bxtwc.h | 69 ++++++ 3 files changed, 547 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 +477 -0
477 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
Signature · 1 line
1.8.3.2