summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
authorJonathan Zhang <jonzhang@fb.com>2020-09-21 17:09:50 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-09-28 09:38:39 +0000
commitdb202bad099d5d64ba4ebc763e55ed8a48d7fbf1 (patch)
tree5cc8486d868475d2b45b7ff68b6b0c625d551be4 /src/soc/intel/common
parent339fa7389b0602a64beea80b35b42944faa066cf (diff)
soc/intel/common/block/lpc: add acpi name
Add ACPI name for LPC device. The name matches with what is in soc/intel/common/block/acpi/acpi/lpc.asl. Since several Intel SOCs select CONFIG_SOC_INTEL_COMMON_BLOCK_LPC, remove duplicated acpi name assignments. Signed-off-by: Jonathan Zhang <jonzhang@fb.com> Change-Id: If418c83caafe5d9e2af135a8946cbe5eb687b9ef Reviewed-on: https://review.coreboot.org/c/coreboot/+/45590 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/block/lpc/lpc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/lpc/lpc.c b/src/soc/intel/common/block/lpc/lpc.c
index 212fd70478..28c030f032 100644
--- a/src/soc/intel/common/block/lpc/lpc.c
+++ b/src/soc/intel/common/block/lpc/lpc.c
@@ -95,6 +95,13 @@ static void pch_lpc_set_resources(struct device *dev)
pch_lpc_set_child_resources(dev);
}
+#if CONFIG(HAVE_ACPI_TABLES)
+static const char *lpc_acpi_name(const struct device *dev)
+{
+ return "LPCB";
+}
+#endif
+
static struct device_operations device_ops = {
.read_resources = pch_lpc_read_resources,
.set_resources = pch_lpc_set_resources,
@@ -102,6 +109,7 @@ static struct device_operations device_ops = {
#if CONFIG(HAVE_ACPI_TABLES)
.write_acpi_tables = southbridge_write_acpi_tables,
.acpi_inject_dsdt = southbridge_inject_dsdt,
+ .acpi_name = lpc_acpi_name,
#endif
.init = lpc_soc_init,
.scan_bus = scan_static_bus,