summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/bd82x6x/azalia.c
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-06-07 09:46:52 +0200
committerMartin Roth <martinroth@google.com>2017-06-27 16:13:13 +0000
commit604f69868ffc47c4cfc7623c83ccff89a0afcee8 (patch)
treea23a5c1b8a5f3964c8fd7b45793a20e4420b926c /src/southbridge/intel/bd82x6x/azalia.c
parent3e47fc9e94089476fcef4fcafa8547cbb693316b (diff)
sb/intel/bd82x6x: 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. HDEF is defined in sb/intel/bd82x6x/acpi/audio.asl. LPCB is defined in sb/intel/bd82x6x/acpi/lpc.asl. RP0* is defined in sb/intel/bd82x6x/acpi/pcie.asl. SATA is defined in sb/intel/bd82x6x/acpi/sata.asl. SBUS is defined in sb/intel/bd82x6x/acpi/smbus.asl. EHC? is defined in sb/intel/bd82x6x/acpi/usb.asl. XHC is defined in sb/intel/bd82x6x/acpi/usb.asl. Change-Id: I08611b11c694ee5034bca11cb321915d5c73c2f6 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/20086 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/southbridge/intel/bd82x6x/azalia.c')
-rw-r--r--src/southbridge/intel/bd82x6x/azalia.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/southbridge/intel/bd82x6x/azalia.c b/src/southbridge/intel/bd82x6x/azalia.c
index c122d2a1c7..0e974ba53d 100644
--- a/src/southbridge/intel/bd82x6x/azalia.c
+++ b/src/southbridge/intel/bd82x6x/azalia.c
@@ -331,6 +331,11 @@ static void azalia_init(struct device *dev)
pci_write_config8(dev, 0x43, reg8);
}
+static const char *azalia_acpi_name(device_t dev)
+{
+ return "HDEF";
+}
+
static void azalia_set_subsystem(device_t dev, unsigned vendor, unsigned device)
{
if (!vendor || !device) {
@@ -353,6 +358,7 @@ static struct device_operations azalia_ops = {
.init = azalia_init,
.scan_bus = 0,
.ops_pci = &azalia_pci_ops,
+ .acpi_name = azalia_acpi_name,
};
static const unsigned short pci_device_ids[] = { 0x1c20, 0x1e20, 0 };