diff options
author | Patrick Rudolph <siro@das-labor.org> | 2017-05-20 11:46:06 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2017-06-15 12:13:51 +0200 |
commit | ee14ccca7a94ba2b14ed032baa6d1ab5dc8b92e9 (patch) | |
tree | c61c371e3c78dc4f8e7da18dcbca981114552e3b /src/northbridge/intel/haswell | |
parent | fc209261309c336b64d9407b1b9cdf0e17ad9422 (diff) |
nb/intel/haswell/gma: Write ACPI tables
Add method gma_write_acpi_tables.
No need to update GNVS as it doesn't have ASLB.
Change-Id: Ia138cfde2271a298c36b85e999ff69f0f211ba11
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/19909
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/northbridge/intel/haswell')
-rw-r--r-- | src/northbridge/intel/haswell/gma.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/northbridge/intel/haswell/gma.c b/src/northbridge/intel/haswell/gma.c index 1379539b4f..172aa7ed0d 100644 --- a/src/northbridge/intel/haswell/gma.c +++ b/src/northbridge/intel/haswell/gma.c @@ -493,6 +493,22 @@ static void gma_ssdt(device_t device) 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 @@ static struct device_operations gma_func0_ops = { .scan_bus = 0, .enable = 0, .ops_pci = &gma_pci_ops, + .write_acpi_tables = gma_write_acpi_tables, }; static const unsigned short pci_device_ids[] = { |