summaryrefslogtreecommitdiffstats
path: root/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl
diff options
context:
space:
mode:
authorRizwan Qureshi <rizwan.qureshi@intel.com>2020-03-13 18:13:50 +0530
committerPatrick Georgi <pgeorgi@google.com>2020-03-17 08:25:57 +0000
commit789bdc3d9bdd4f4a7587b8dd2dc7cc21e1f2495c (patch)
treebbf3bbd96be74d6be327749335b6c8ba16574bed /src/mainboard/intel/tglrvp/acpi/mipi_camera.asl
parentbc25a361dc7096b51f56640273269e4867eb0881 (diff)
downloadcoreboot-789bdc3d9bdd4f4a7587b8dd2dc7cc21e1f2495c.tar.gz
coreboot-789bdc3d9bdd4f4a7587b8dd2dc7cc21e1f2495c.tar.bz2
coreboot-789bdc3d9bdd4f4a7587b8dd2dc7cc21e1f2495c.zip
src/soc/intel/tigerlake: Fix incorrect use of Field objects in ASL
Method RAOW is assuming that the first argument is a Field object and writing to it expecting the register to get updated. However, the callers are passing in the value of the Field object instead. This eventually is resulting the IMGCLK not getting enable/disabled on the platform. Fix this by sending the exact address of the register to be updated. Also MCCT was setting the clock frequency in both case i.e, Clock Enable and Disable. Split the MCCT method in two, MCON and MCOF to fix the sequencing like below MCON: Set frequency Enable clock MCOF: Disable clock Also, make use of MCON and MCOF methods for camera clock control in tglrvp. This is to avoid the buildbot marking the patch unstable. BUG=None BRANCH=None TEST=Build and Boot waddledoo board and verified that IMGCLKOUT for world facing camera is enabled/disabled and able to capture images. Build and Boot Tiger Lake RVP board and verified that IMGCLKOUT for world facing camera is enabled/disabled and able to capture images. Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com> Change-Id: I8b886255d5f38819502ae1f4af0851b5a0922b22 Reviewed-on: https://review.coreboot.org/c/coreboot/+/39498 Reviewed-by: Srinidhi N Kaushik <srinidhi.n.kaushik@intel.com> Reviewed-by: Wonkyu Kim <wonkyu.kim@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/intel/tglrvp/acpi/mipi_camera.asl')
-rw-r--r--src/mainboard/intel/tglrvp/acpi/mipi_camera.asl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl b/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl
index c830ea1f4663..5d42a29aeee6 100644
--- a/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl
+++ b/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl
@@ -177,7 +177,7 @@ Scope (\_SB.PCI0.I2C3)
If ((STA == Zero))
{
/* Enable CLK0 with 19.2MHz */
- MCCT(0,1,1)
+ MCON(0,1)
/* Pull PWREN(GPIO B23) high */
STXS(GPP_B23)
Sleep(5)
@@ -200,7 +200,7 @@ Scope (\_SB.PCI0.I2C3)
/* Pull PWREN low */
CTXS(GPP_B23)
/* Disable CLK0 */
- MCCT(0,0,1)
+ MCOF(0)
Store(0,STA)
}
}
@@ -380,7 +380,7 @@ Scope (\_SB.PCI0.I2C5)
If ((STA == Zero))
{
/* Enable CLK1 with 19.2MHz */
- MCCT(1,1,1)
+ MCON(1,1)
/* Pull PWREN(GPIO R6) high */
STXS(GPP_R6)
Sleep(5)
@@ -403,7 +403,7 @@ Scope (\_SB.PCI0.I2C5)
/* Pull PWREN low */
CTXS(GPP_R6)
/* Disable CLK1 */
- MCCT(1,0,1)
+ MCOF(1)
Store(0,STA)
}
}