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 <furquan@google.com> Change-Id: I84bb8150dada99def85b685535706aa609de227f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/2252556 Commit-Queue: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42969 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
d2d5e44a67
commit
0d787a1b06
|
@ -35,12 +35,19 @@ static void init(struct device *dev)
|
||||||
sb_clk_output_48Mhz(); /* Internal connection to I2S */
|
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 = {
|
static struct device_operations acp_ops = {
|
||||||
.read_resources = pci_dev_read_resources,
|
.read_resources = pci_dev_read_resources,
|
||||||
.set_resources = pci_dev_set_resources,
|
.set_resources = pci_dev_set_resources,
|
||||||
.enable_resources = pci_dev_enable_resources,
|
.enable_resources = pci_dev_enable_resources,
|
||||||
.init = init,
|
.init = init,
|
||||||
.ops_pci = &pci_dev_ops_pci,
|
.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 = {
|
static const struct pci_driver acp_driver __pci_driver = {
|
||||||
|
|
Loading…
Reference in New Issue