soc/amd/common/block/lpc: move ACPI name to common code
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I7517d81d41422cfa10fabd12ab3da4f61c3f9034 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50818 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
61e60d1c16
commit
3e29ca93fc
@ -319,11 +319,19 @@ static void lpc_enable_resources(struct device *dev)
|
|||||||
lpc_enable_children_resources(dev);
|
lpc_enable_children_resources(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG(HAVE_ACPI_TABLES)
|
||||||
|
static const char *lpc_acpi_name(const struct device *dev)
|
||||||
|
{
|
||||||
|
return "LPCB";
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct device_operations lpc_ops = {
|
static struct device_operations lpc_ops = {
|
||||||
.read_resources = lpc_read_resources,
|
.read_resources = lpc_read_resources,
|
||||||
.set_resources = lpc_set_resources,
|
.set_resources = lpc_set_resources,
|
||||||
.enable_resources = lpc_enable_resources,
|
.enable_resources = lpc_enable_resources,
|
||||||
#if CONFIG(HAVE_ACPI_TABLES)
|
#if CONFIG(HAVE_ACPI_TABLES)
|
||||||
|
.acpi_name = lpc_acpi_name,
|
||||||
.write_acpi_tables = southbridge_write_acpi_tables,
|
.write_acpi_tables = southbridge_write_acpi_tables,
|
||||||
#endif
|
#endif
|
||||||
.init = lpc_init,
|
.init = lpc_init,
|
||||||
|
@ -39,8 +39,6 @@ static const char *soc_acpi_name(const struct device *dev)
|
|||||||
return "GNB";
|
return "GNB";
|
||||||
case IOMMU_DEVFN:
|
case IOMMU_DEVFN:
|
||||||
return "IOMM";
|
return "IOMM";
|
||||||
case LPC_DEVFN:
|
|
||||||
return "LPCB";
|
|
||||||
case SMBUS_DEVFN:
|
case SMBUS_DEVFN:
|
||||||
return "SBUS";
|
return "SBUS";
|
||||||
default:
|
default:
|
||||||
|
@ -81,8 +81,6 @@ const char *soc_acpi_name(const struct device *dev)
|
|||||||
return "PBR8";
|
return "PBR8";
|
||||||
case EHCI1_DEVFN:
|
case EHCI1_DEVFN:
|
||||||
return "EHC0";
|
return "EHC0";
|
||||||
case LPC_DEVFN:
|
|
||||||
return "LPCB";
|
|
||||||
case SD_DEVFN:
|
case SD_DEVFN:
|
||||||
return "SDCN";
|
return "SDCN";
|
||||||
case SMBUS_DEVFN:
|
case SMBUS_DEVFN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user