Patrick Rudolph has uploaded a new change for review. ( https://review.coreboot.org/19909 )
Change subject: nb/intel/haswell/gma: Write ACPI tables ......................................................................
nb/intel/haswell/gma: Write ACPI tables
Add method gma_write_acpi_tables. No need to update GNVS as it doesn't have ASLS.
Change-Id: Ia138cfde2271a298c36b85e999ff69f0f211ba11 Signed-off-by: Patrick Rudolph siro@das-labor.org --- M src/northbridge/intel/haswell/gma.c 1 file changed, 17 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/19909/1
diff --git a/src/northbridge/intel/haswell/gma.c b/src/northbridge/intel/haswell/gma.c index a7478de..1a4881f 100644 --- a/src/northbridge/intel/haswell/gma.c +++ b/src/northbridge/intel/haswell/gma.c @@ -493,6 +493,22 @@ drivers_intel_gma_displays_ssdt_generate(gfx); }
+static unsigned long +gma_write_acpi_tables(struct device *const dev, + unsigned long current, + struct acpi_rsdp *const rsdp) +{ + igd_opregion_t *opregion = (igd_opregion_t *)current; + + if (init_igd_opregion(opregion)) + return current; + + current += sizeof(igd_opregion_t); + + current = acpi_align_current(current); + return current; +} + static struct pci_operations gma_pci_ops = { .set_subsystem = gma_set_subsystem, }; @@ -506,6 +522,7 @@ .scan_bus = 0, .enable = 0, .ops_pci = &gma_pci_ops, + .write_acpi_tables = gma_write_acpi_tables, };
static const unsigned short pci_device_ids[] = {