diff options
author | Furquan Shaikh <furquan@google.com> | 2020-04-27 15:34:47 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-04-28 22:56:39 +0000 |
commit | 69c0469bb94662f0fff523fe6eeb84911b397a47 (patch) | |
tree | 4a63e5674411f5609406060221bcdd09ca0d9a54 /src/soc/amd/common/block/sata | |
parent | d7d22a4a530695cda9343cf0b6708e41fc1a6db6 (diff) |
soc/amd/sata: Add .acpi_name() callback to SATA driver
This change adds .acpi_name() callback to SATA driver that returns
"STCR" as the ACPI device name for SATA. Since this is now done by the
common SATA driver, this change also removes the SATA device name
returned by stoneyridge in chip.c.
BUG=b:153858769
Change-Id: I5e0998be3016febbb3b0e91940750a38edb6a9e7
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40768
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>
Diffstat (limited to 'src/soc/amd/common/block/sata')
-rw-r--r-- | src/soc/amd/common/block/sata/sata.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/sata/sata.c b/src/soc/amd/common/block/sata/sata.c index e95587eafc..f9b6549494 100644 --- a/src/soc/amd/common/block/sata/sata.c +++ b/src/soc/amd/common/block/sata/sata.c @@ -8,11 +8,17 @@ void __weak soc_enable_sata_features(struct device *dev) { } +static const char *sata_acpi_name(const struct device *dev) +{ + return "STCR"; +} + static struct device_operations sata_ops = { .read_resources = pci_dev_read_resources, .set_resources = pci_dev_set_resources, .enable_resources = pci_dev_enable_resources, .init = soc_enable_sata_features, + .acpi_name = sata_acpi_name, }; static const unsigned short pci_device_ids[] = { |