soc/amd/genoa/domain: generate SSDT entries for domains
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Iadc37f2724a9be43cad1f1934403ebabd5cca245 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79469 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
@@ -57,9 +57,26 @@ static void genoa_domain_init(struct device *domain)
|
|||||||
register_new_ioapic((void *)(uintptr_t)res->base);
|
register_new_ioapic((void *)(uintptr_t)res->base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const char *genoa_domain_acpi_name(const struct device *domain)
|
||||||
|
{
|
||||||
|
const char *domain_acpi_names[4] = {
|
||||||
|
"S0B0",
|
||||||
|
"S0B1",
|
||||||
|
"S0B2",
|
||||||
|
"S0B3",
|
||||||
|
};
|
||||||
|
|
||||||
|
if (domain->path.domain.domain < ARRAY_SIZE(domain_acpi_names))
|
||||||
|
return domain_acpi_names[domain->path.domain.domain];
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
struct device_operations genoa_pci_domain_ops = {
|
struct device_operations genoa_pci_domain_ops = {
|
||||||
.read_resources = genoa_domain_read_resources,
|
.read_resources = genoa_domain_read_resources,
|
||||||
.set_resources = genoa_domain_set_resources,
|
.set_resources = genoa_domain_set_resources,
|
||||||
.scan_bus = amd_pci_domain_scan_bus,
|
.scan_bus = amd_pci_domain_scan_bus,
|
||||||
.init = genoa_domain_init,
|
.init = genoa_domain_init,
|
||||||
|
.acpi_name = genoa_domain_acpi_name,
|
||||||
|
.acpi_fill_ssdt = amd_pci_domain_fill_ssdt,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user