mb/google/kblrvp: Add camera devices power sequencing through ACPI power resources
commitf19ee0d73745d4301ed562aefb671c03401ac619
authorV Sowmya <v.sowmya@intel.com>
Thu, 20 Jul 2017 05:42:33 +0000 (20 11:12 +0530)
committerMartin Roth <martinroth@google.com>
Thu, 27 Jul 2017 00:31:58 +0000 (27 00:31 +0000)
tree1963f30106724a06df16f98498a6d44aeb8781d3
parent34e92a9be51a4f6bab2b124bac8e7ae7b7bf5728
mb/google/kblrvp: Add camera devices power sequencing through ACPI power resources

This patch controls the camera devices power through ACPI power resource.
* Add Opregions for PMIC1 and PMIC2,
* TI_PMIC_POWER_OPREGION
* TI_PMIC_VR_VAL_OPREGION
* TI_PMIC_CLK_OPREGION
* TI_PMIC_CLK_FREQ_OPREGION
* Add power resources for sensors and VCM,
* OVTH for CAM0
* OVFI for CAM1
* VCMP for VCM
* Implement _ON and _OFF methods for sensor and VCM module's power on
and power off sequences.

BUG=none
BRANCH=none
TEST=Build and boot kblrvp. Dump and verify that the generated DSDT table
has the required entries. Verified that sensor probe is successful.

Change-Id: I02c4784ab3f4d6e1f0e657ad50b727ff11da8b9c
Signed-off-by: V Sowmya <v.sowmya@intel.com>
Reviewed-on: https://review.coreboot.org/20663
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/mainboard/intel/kblrvp/acpi/mipi_camera.asl