From 3e29ca93fc98a3481a313c24d7b1c50b52c0ab4e Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 16 Feb 2021 23:52:58 +0100 Subject: soc/amd/common/block/lpc: move ACPI name to common code Signed-off-by: Felix Held Change-Id: I7517d81d41422cfa10fabd12ab3da4f61c3f9034 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50818 Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/lpc/lpc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/soc/amd/common/block/lpc') diff --git a/src/soc/amd/common/block/lpc/lpc.c b/src/soc/amd/common/block/lpc/lpc.c index bffb9d456c..1d019a3403 100644 --- a/src/soc/amd/common/block/lpc/lpc.c +++ b/src/soc/amd/common/block/lpc/lpc.c @@ -319,11 +319,19 @@ static void lpc_enable_resources(struct device *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 = { .read_resources = lpc_read_resources, .set_resources = lpc_set_resources, .enable_resources = lpc_enable_resources, #if CONFIG(HAVE_ACPI_TABLES) + .acpi_name = lpc_acpi_name, .write_acpi_tables = southbridge_write_acpi_tables, #endif .init = lpc_init, -- cgit v1.2.3