summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-03-08 16:35:05 +0100
committerFelix Held <felix-coreboot@felixheld.de>2023-03-09 16:57:07 +0000
commite7be79c610d30b316237ec885cbdf88d9906e1f8 (patch)
treec2457a58f3d5d098a5a23fd3042162517af542e2
parentbfc9ca7f55b80e02d1c930f779930e9cc94d2cf2 (diff)
soc/intel/broadwell/gma: don't unconditionally remap all GPU PCI IDs
This fixes the case where a Broadwell CPU is combined with an AMD or NVIDIA GPU would result in using the Broadwell GPU VBIOS file from CBFS for the discrete GPU too. A further improvement would be to use a list of the Intel iGPU PCI IDs like it is done in the Skylake code. TEST=None Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I3eb50cb9a0539255d50e5cd8163f10c3a062cc4d Reviewed-on: https://review.coreboot.org/c/coreboot/+/73611 Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
-rw-r--r--src/soc/intel/broadwell/gma.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/soc/intel/broadwell/gma.c b/src/soc/intel/broadwell/gma.c
index e50ff0cd81..d3b923ad94 100644
--- a/src/soc/intel/broadwell/gma.c
+++ b/src/soc/intel/broadwell/gma.c
@@ -240,7 +240,10 @@ static const struct reg_script broadwell_late_init_script[] = {
u32 map_oprom_vendev(u32 vendev)
{
- return SA_IGD_OPROM_VENDEV;
+ if (vendev >> 16 == PCI_VID_INTEL)
+ return SA_IGD_OPROM_VENDEV;
+ else
+ return vendev;
}
static struct resource *gtt_res = NULL;