diff options
author | Patrick Rudolph <siro@das-labor.org> | 2017-06-07 09:44:07 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-06-27 16:09:18 +0000 |
commit | 3e47fc9e94089476fcef4fcafa8547cbb693316b (patch) | |
tree | 9b5016ac85e7ac31579460173718762e974f5ec1 /src/northbridge/intel/sandybridge/gma.c | |
parent | 33906d2347e6cd32a7dd4cda1f7bd27b2d660241 (diff) | |
download | coreboot-3e47fc9e94089476fcef4fcafa8547cbb693316b.tar.xz |
nb/intel/sandybridge: Fill in acpi_name
Fill in acpi_name to return proper ACPI names. To be used with
SSDT generators.
The ACPI names have to match those already used in ASL code.
By providing the ACPI name it can be retrieved by the
acpi_device_name() method and doesn't need to be hardcoded in
SSDT generators any more.
GFX0 is used in drivers/intel/gma/acpi/pch.asl.
MCHC is used in nb/intel/sandybridge/acpi/hostbridge.asl.
Change-Id: I19526e334a9c5435fdb19419a671b86c5f6b2be9
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/20085
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'src/northbridge/intel/sandybridge/gma.c')
-rw-r--r-- | src/northbridge/intel/sandybridge/gma.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/northbridge/intel/sandybridge/gma.c b/src/northbridge/intel/sandybridge/gma.c index f53493096f..9611e64797 100644 --- a/src/northbridge/intel/sandybridge/gma.c +++ b/src/northbridge/intel/sandybridge/gma.c @@ -700,6 +700,11 @@ gma_write_acpi_tables(struct device *const dev, return current; } +static const char *gma_acpi_name(device_t dev) +{ + return "GFX0"; +} + /* called by pci set_vga_bridge function */ static void gma_func0_disable(struct device *dev) { @@ -727,6 +732,7 @@ static struct device_operations gma_func0_ops = { .enable = 0, .disable = gma_func0_disable, .ops_pci = &gma_pci_ops, + .acpi_name = gma_acpi_name, .write_acpi_tables = gma_write_acpi_tables, }; |