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>
This commit is contained in:
Nico Huber 2020-03-31 17:51:18 +02:00 committed by Matt DeVillier
parent 68680dd7cd
commit 38641aa8b4

View File

@ -13,6 +13,9 @@ drivers_intel_gma_displays_ssdt_generate(const struct i915_gpu_controller_info *
const char *names[] = { "UNK", "VGA", "TV", "DVI", "LCD" }; const char *names[] = { "UNK", "VGA", "TV", "DVI", "LCD" };
int counters[ARRAY_SIZE(names)] = { 0 }; int counters[ARRAY_SIZE(names)] = { 0 };
if (!conf->ndid)
return;
acpigen_write_scope("\\_SB.PCI0.GFX0"); acpigen_write_scope("\\_SB.PCI0.GFX0");
/* /*