summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2020-03-31 17:51:18 +0200
committerMatt DeVillier <matt.devillier@gmail.com>2020-04-02 20:30:37 +0000
commit38641aa8b40ef66e5a5016f6f299a3aa1fb9b0d5 (patch)
treec466397b160502267d086ac6fecf64239bed3c87 /src
parent68680dd7cd1a2678406610e99400bd25bf7fa282 (diff)
downloadcoreboot-38641aa8b40ef66e5a5016f6f299a3aa1fb9b0d5.tar.xz
drivers/intel/gma/acpi: Bail out on empty display list
Whether the GMA is used depends on the mainboard, so we shouldn't rely on the presence of the static ACPI code around `GFX0`. Change-Id: I4d20b459b8361e43435b535b2b395f51ce1704e6 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39978 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/intel/gma/acpi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/intel/gma/acpi.c b/src/drivers/intel/gma/acpi.c
index c0eef880a9..5a10ab4ed7 100644
--- a/src/drivers/intel/gma/acpi.c
+++ b/src/drivers/intel/gma/acpi.c
@@ -13,6 +13,9 @@ drivers_intel_gma_displays_ssdt_generate(const struct i915_gpu_controller_info *
const char *names[] = { "UNK", "VGA", "TV", "DVI", "LCD" };
int counters[ARRAY_SIZE(names)] = { 0 };
+ if (!conf->ndid)
+ return;
+
acpigen_write_scope("\\_SB.PCI0.GFX0");
/*