mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Lee Jones <[email protected]> for the MFD part Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
a26033a1f5
commit
b1eea857d8
6 changed files with 613 additions and 0 deletions
|
|
@ -106,6 +106,9 @@ static struct mfd_cell crystal_cove_dev[] = {
|
|||
.num_resources = ARRAY_SIZE(gpio_resources),
|
||||
.resources = gpio_resources,
|
||||
},
|
||||
{
|
||||
.name = "crystal_cove_pmic",
|
||||
},
|
||||
};
|
||||
|
||||
static struct regmap_config crystal_cove_regmap_config = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue