Skip to contentSkip to conversation

acpi/pmic: Add opregion driver for Intel BXT WhiskeyCove PMIC

PATCH In review Bin Gao 1 participant 1 message Jun 24, 2016

Subsystems (2)
lore
Share & tools
lore

Bin Gao

author
#0 lore raw

PATCH v4 2/3 acpi/pmic: Add opregion driver for Intel BXT WhiskeyCove PMIC

This patch adds operation region driver for Intel BXT WhiskeyCove PMIC. The register mapping is done as per the BXT WC data sheet.

---
Changes in v4:
- Reverted(removed) regs_read() and regs_write() methods
Changes in v3:
- Added regs_read() and regs_write() methods
Changes in v2:
- replaced module_init() with device_initcall()

 drivers/acpi/Kconfig                 |   6 +
 drivers/acpi/Makefile                |   1 +
 drivers/acpi/pmic/intel_pmic_bxtwc.c | 424 +++++++++++++++++++++++++++++++++++
 3 files changed, 431 insertions(+)
 create mode 100644 drivers/acpi/pmic/intel_pmic_bxtwc.c
drivers/acpi/Kconfig +6 -0
index b7e2e77..47cb6f6 100644
@@ -519,6 +519,12 @@ config XPOWER_PMIC_OPREGION
 	help
 	  This config adds ACPI operation region support for XPower AXP288 PMIC.
 
+config BXT_WC_PMIC_OPREGION
+	bool "ACPI operation region support for BXT WhiskeyCove PMIC"
+	depends on INTEL_SOC_PMIC
+	help
+	  This config adds ACPI operation region support for BXT WhiskeyCove PMIC.
+
 endif
 
 endif	# ACPI
drivers/acpi/Makefile +1 -0
index 251ce85..5da9d4b 100644
@@ -99,5 +99,6 @@ obj-$(CONFIG_ACPI_EXTLOG)	+= acpi_extlog.o
 obj-$(CONFIG_PMIC_OPREGION)	+= pmic/intel_pmic.o
 obj-$(CONFIG_CRC_PMIC_OPREGION) += pmic/intel_pmic_crc.o
 obj-$(CONFIG_XPOWER_PMIC_OPREGION) += pmic/intel_pmic_xpower.o
+obj-$(CONFIG_BXT_WC_PMIC_OPREGION) += pmic/intel_pmic_bxtwc.o
 
 video-objs			+= acpi_video.o video_detect.o
drivers/acpi/pmic/intel_pmic_bxtwc.c new file +424 -0

424 lines not on this page · raw message

Signature · 1 line
1.9.1