ACPI / PMIC: support PMIC operation region for CrystalCove
authorAaron Lu <aaron.lu@intel.com>
Mon, 24 Nov 2014 09:21:54 +0000 (17:21 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 26 Nov 2014 22:32:05 +0000 (23:32 +0100)
commitb1eea857d8c70dc3789cc2231e3c0a273a67ba06
tree4aa99b39d0b8aa244471dc2e8300dabc398c5194
parenta26033a1f56b7b1f8a56050c0a9095694aecae11
ACPI / PMIC: support PMIC operation region for CrystalCove

The Baytrail-T platform firmware has defined two customized operation
regions for PMIC chip Crystal Cove - one is for power resource handling
and one is for thermal: sensor temperature reporting, trip point setting,
etc. This patch adds support for them on top of the existing Crystal Cove
PMIC driver.

The reason to split code into a separate file intel_pmic.c is that there
are more PMIC drivers with ACPI operation region support coming and we can
re-use those code. The intel_pmic_opregion_data structure is created also
for this purpose: when we need to support a new PMIC's operation region,
we just need to fill those callbacks and the two register mapping tables.

Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Acked-by: Lee Jones <lee.jones@linaro.org> for the MFD part
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Kconfig
drivers/acpi/Makefile
drivers/acpi/pmic/intel_pmic.c [new file with mode: 0644]
drivers/acpi/pmic/intel_pmic.h [new file with mode: 0644]
drivers/acpi/pmic/intel_pmic_crc.c [new file with mode: 0644]
drivers/mfd/intel_soc_pmic_crc.c