summaryrefslogtreecommitdiff
path: root/src/drivers/intel/gma/i915.h
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2023-09-17 18:39:31 +0000
committerSubrata Banik <subratabanik@google.com>2023-10-04 18:50:21 +0000
commit1858903e780391cac0f37157f5de821b508d4e8d (patch)
treed55d930c30b0f3600926a36a17c1bd76630d13e3 /src/drivers/intel/gma/i915.h
parentb6b3c62ea188aacb4803bf6f00691a824bef98c5 (diff)
drivers/intel/gma: Update port select bit definitions
This commit updates the port select bit definitions for the TRANS_DDI_FUNC_CTL registers in the Intel GMA driver to accommodate the changes introduced since TGL SoC. Specifically, the following changes were made: - Updated the DDI select bit definitions from 3-bits (bit 28-30) to 4-bits (bit 27-30). - Introduces `INTEL_GMA_VERSION_2` config to accommodate the port and pipe related differences between previous generation GMA register (TRANS_DDI_FUNC_CTL) to the current generation GMA register. This commit backports the change from the following upstream patch: https://patchwork.freedesktop.org/patch/msgid/20190713010940.17711-3- lucas.demarchi@intel.com BUG=b:299137940 TEST=Able to build and boot google/rex. Change-Id: I815ffa90c2e235afd70baa7e3837e1f9af89b1b0 Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78078 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <ericllai@google.com> Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Diffstat (limited to 'src/drivers/intel/gma/i915.h')
-rw-r--r--src/drivers/intel/gma/i915.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drivers/intel/gma/i915.h b/src/drivers/intel/gma/i915.h
index 8e9fc904f2..5c341046f5 100644
--- a/src/drivers/intel/gma/i915.h
+++ b/src/drivers/intel/gma/i915.h
@@ -30,6 +30,12 @@ enum port {
PORT_A = 0,
PORT_B,
PORT_C,
+#if CONFIG(INTEL_GMA_VERSION_2)
+ PORT_USB_C1,
+ PORT_USB_C2,
+ PORT_USB_C3,
+ PORT_USB_C4,
+#endif
PORT_D,
PORT_E,
I915_NUM_PORTS
@@ -39,6 +45,9 @@ enum pipe {
PIPE_A = 0,
PIPE_B,
PIPE_C,
+#if CONFIG(INTEL_GMA_VERSION_2)
+ PIPE_D,
+#endif
I915_NUM_PIPES
};