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>
This commit is contained in:
committed by
Martin Roth
parent
3e47fc9e94
commit
604f69868f
@@ -814,6 +814,11 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||
fadt->x_gpe1_blk.addrh = 0x0;
|
||||
}
|
||||
|
||||
static const char *lpc_acpi_name(device_t dev)
|
||||
{
|
||||
return "LPCB";
|
||||
}
|
||||
|
||||
static void southbridge_fill_ssdt(device_t device)
|
||||
{
|
||||
device_t dev = dev_find_slot(0, PCI_DEVFN(0x1f,0));
|
||||
@@ -841,6 +846,7 @@ static struct device_operations device_ops = {
|
||||
.write_acpi_tables = acpi_write_hpet,
|
||||
.acpi_inject_dsdt_generator = southbridge_inject_dsdt,
|
||||
.acpi_fill_ssdt_generator = southbridge_fill_ssdt,
|
||||
.acpi_name = lpc_acpi_name,
|
||||
.init = lpc_init,
|
||||
.final = lpc_final,
|
||||
.enable = pch_lpc_enable,
|
||||
|
Reference in New Issue
Block a user