From 9022b9d2aaa2421a069c26ac656b3954138a0674 Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Fri, 25 May 2018 20:53:44 -0600 Subject: soc/amd/stoneyridge: Add ACPI device name lookup Add the ACPI devices defined in ASL to the soc_acpi_name() lookup function. BUG=b:80280671 TEST=Add ACPI method to specific GPP bridge. Boot and verify method with ACPI dump. Change-Id: I5117e0d39db831364173c9c61ccdab6e34f18c59 Signed-off-by: Marc Jones Signed-off-by: Marc Jones Reviewed-on: https://review.coreboot.org/26698 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Kevin Chiu Reviewed-by: Marshall Dawson --- src/soc/amd/stoneyridge/chip.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/soc/amd/stoneyridge/chip.c') diff --git a/src/soc/amd/stoneyridge/chip.c b/src/soc/amd/stoneyridge/chip.c index 3b73a054b8..9ca2db7e85 100644 --- a/src/soc/amd/stoneyridge/chip.c +++ b/src/soc/amd/stoneyridge/chip.c @@ -82,6 +82,18 @@ const char *soc_acpi_name(const struct device *dev) return NULL; switch (dev->path.pci.devfn) { + case PCIE0_DEVFN: + return "PBR4"; + case PCIE1_DEVFN: + return "PBR5"; + case PCIE2_DEVFN: + return "PBR6"; + case PCIE3_DEVFN: + return "PBR7"; + case PCIE4_DEVFN: + return "PBR8"; + case HDA1_DEVFN: + return "AZHD"; case EHCI1_DEVFN: return "EHC0"; case LPC_DEVFN: -- cgit v1.2.3