From 0d787a1b06bc32cbc53927f5efd49184e2a19c16 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Thu, 18 Jun 2020 22:20:52 -0700 Subject: [PATCH] soc/amd/picasso: Add .acpi_name and .acpi_fill_ssdt_generator for ACP device This change adds support for .acpi_name and .acpi_fill_ssdt_generator device operations for the ACP device. BUG=b:157603026 Signed-off-by: Furquan Shaikh Change-Id: I84bb8150dada99def85b685535706aa609de227f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/2252556 Commit-Queue: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/c/coreboot/+/42969 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/amd/picasso/acp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/soc/amd/picasso/acp.c b/src/soc/amd/picasso/acp.c index 29b7521f38..1e871e99d8 100644 --- a/src/soc/amd/picasso/acp.c +++ b/src/soc/amd/picasso/acp.c @@ -35,12 +35,19 @@ static void init(struct device *dev) sb_clk_output_48Mhz(); /* Internal connection to I2S */ } +static const char *acp_acpi_name(const struct device *dev) +{ + return "ACPD"; +} + static struct device_operations acp_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, .init = init, .ops_pci = &pci_dev_ops_pci, + .acpi_name = acp_acpi_name, + .acpi_fill_ssdt = acpi_device_write_pci_dev, }; static const struct pci_driver acp_driver __pci_driver = {