soc/amd/hda: Add .acpi_name() callback to HDA driver

This change adds .acpi_name() callback to HDA driver that returns
"AZHD" as the ACPI device name for HDA controller. Since this is now
done by the common HDA driver, this change also removes the HDA device
name returned by stoneyridge in chip.c.

BUG=b:153858769

Change-Id: I89eaa799518572f3c46c7ce9ef8dd3f85daa12bb
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40781
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Furquan Shaikh 2020-04-27 18:04:46 -07:00
parent 45f06c56ca
commit edfc5a9df5
2 changed files with 6 additions and 2 deletions

View File

@ -14,11 +14,17 @@ static const unsigned short pci_device_ids[] = {
0
};
static const char *hda_acpi_name(const struct device *dev)
{
return "AZHD";
}
static struct device_operations hda_audio_ops = {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.ops_pci = &pci_dev_ops_pci,
.acpi_name = hda_acpi_name,
};
static const struct pci_driver hdaaudio_driver __pci_driver = {

View File

@ -81,8 +81,6 @@ const char *soc_acpi_name(const struct device *dev)
return "PBR7";
case PCIE4_DEVFN:
return "PBR8";
case HDA1_DEVFN:
return "AZHD";
case EHCI1_DEVFN:
return "EHC0";
case LPC_DEVFN: