summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2019-11-01 19:13:01 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-12-02 12:59:12 +0000
commit00517b687a03d6c9a760669c8fe1e89af2fc3884 (patch)
tree680d1d748f2b3a27e3ab285932e0fdb27d51715e /src
parent68f0eb52696397d664c343dacef5c8b390a614e1 (diff)
downloadcoreboot-00517b687a03d6c9a760669c8fe1e89af2fc3884.tar.xz
mb/google/poppy: Remove useless ifs around voltage and GPIO direction configuration
The methods generally tested OP region settings and only changed them if they were not in their desired values. Instead, assign them directly without checking them. BUG=chromium:959232 Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Tested-by: Jacopo Mondi <jacopo@jmondi.org> Change-Id: I3ceca4bd51c4410c7020431f4fd682c4ca925110 Reviewed-on: https://review.coreboot.org/c/coreboot/+/36746 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl41
1 files changed, 11 insertions, 30 deletions
diff --git a/src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl b/src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl
index d70726f49e..d15f5c63d8 100644
--- a/src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl
+++ b/src/mainboard/google/poppy/variants/baseboard/include/baseboard/acpi/camera_pmic.asl
@@ -438,10 +438,6 @@ Scope (\_SB.PCI0.I2C2)
}
}
- /* C0GP is used to indicate if CAM0
- * GPIOs are configured as input.
- */
- Name (C0GP, 0)
/* Power resource methods for CAM0 */
PowerResource (OVTH, 0, 0) {
Name (STA, 0)
@@ -453,22 +449,15 @@ Scope (\_SB.PCI0.I2C2)
daisy chain */
DOVD(1)
- If (LEqual (C0GP, 0)) {
- \_SB.PCI0.I2C2.PMIC.CGP1()
- \_SB.PCI0.I2C2.PMIC.CGP2()
- C0GP = 1
- }
+ \_SB.PCI0.I2C2.PMIC.CGP1()
+ \_SB.PCI0.I2C2.PMIC.CGP2()
- if (LNotEqual (ACVA, 109)) {
- /* Set ANA at 2.8152V */
- ACVA = 109
- }
+ /* Set ANA at 2.8152V */
+ ACVA = 109
VACT = 1
- if (LNotEqual (DCVA, 12)) {
- /* Set CORE at 1.2V */
- DCVA = 12
- }
+ /* Set CORE at 1.2V */
+ DCVA = 12
VDCT = 1
\_SB.PCI0.I2C2.PMIC.CLKE()
@@ -527,11 +516,8 @@ Scope (\_SB.PCI0.I2C2)
daisy chain */
DOVD(1)
- if (LNotEqual (AX2V, 52)) {
- /* Set VAUX2 as
- 1.8006 V */
- AX2V = 52
- }
+ /* Set VAUX2 as 1.8006 V */
+ AX2V = 52
VAX2 = 1 /* Enable VAUX2 */
\_SB.PCI0.I2C2.PMIC.CGP4(1)
@@ -542,10 +528,8 @@ Scope (\_SB.PCI0.I2C2)
*/
Sleep(1)
- if (LNotEqual (AX1V, 19)) {
/* Set VAUX1 as 1.2132V */
- AX1V = 19
- }
+ AX1V = 19
VAX1 = 1 /* Enable VAUX1 */
/* Wait for VDD to settle. */
@@ -603,11 +587,8 @@ Scope (\_SB.PCI0.I2C2)
/* Enable VCM regulator */
VCMC = 1
- if (LNotEqual (VCMV, 109)) {
- /* Set VCM value at
- 2.8152 V */
- VCMV = 109
- }
+ /* Set VCM value at 2.8152 V */
+ VCMV = 109
Sleep(3)
STA = 1