Skip to content

Commit

Permalink
ACPI / PMIC: Add TI PMIC TPS68470 operation region driver
Browse files Browse the repository at this point in the history
The Kabylake platform coreboot (Chrome OS equivalent of
BIOS) has defined 4 operation regions for the TI TPS68470 PMIC.
These operation regions are to enable/disable voltage
regulators, configure voltage regulators, enable/disable
clocks and to configure clocks.

This config adds ACPI operation region support for TI TPS68470 PMIC.
TPS68470 device is an advanced power management unit that powers
a Compact Camera Module (CCM), generates clocks for image sensors,
drives a dual LED for flash and incorporates two LED drivers for
general purpose indicators.

This driver enables ACPI operation region support to control voltage
regulators and clocks for the TPS68470 PMIC.

Signed-off-by: Rajmohan Mani <rajmohan.mani@intel.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Rajmohan Mani authored and Rafael J. Wysocki committed Oct 3, 2017
1 parent 9e66317 commit e13452a
Show file tree
Hide file tree
Showing 3 changed files with 473 additions and 0 deletions.
16 changes: 16 additions & 0 deletions drivers/acpi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -535,4 +535,20 @@ if ARM64
source "drivers/acpi/arm64/Kconfig"
endif

config TPS68470_PMIC_OPREGION
bool "ACPI operation region support for TPS68470 PMIC"
depends on MFD_TPS68470
help
This config adds ACPI operation region support for TI TPS68470 PMIC.
TPS68470 device is an advanced power management unit that powers
a Compact Camera Module (CCM), generates clocks for image sensors,
drives a dual LED for flash and incorporates two LED drivers for
general purpose indicators.
This driver enables ACPI operation region support control voltage
regulators and clocks.

This option is a bool as it provides an ACPI operation
region, which must be available before any of the devices
using this, are probed.

endif # ACPI
2 changes: 2 additions & 0 deletions drivers/acpi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ obj-$(CONFIG_CHT_WC_PMIC_OPREGION) += pmic/intel_pmic_chtwc.o

obj-$(CONFIG_ACPI_CONFIGFS) += acpi_configfs.o

obj-$(CONFIG_TPS68470_PMIC_OPREGION) += pmic/tps68470_pmic.o

video-objs += acpi_video.o video_detect.o
obj-y += dptf/

Expand Down
Loading

0 comments on commit e13452a

Please sign in to comment.