From e6dd5dc4ea27d6c734ff01f2812a30591bcefd36 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 16 Jul 2021 22:36:21 +0200 Subject: [PATCH] soc/amd/common/block/graphics: add GPU PCI ID for Barcelo Also rename the existing PCI_DEVICE_ID_ATI_FAM19H_MODEL51H_GPU definition to PCI_DEVICE_ID_ATI_FAM19H_MODEL51H_GPU_CEZANNE to clarify that that is the one for Cezanne. BUG=b:193888172 Change-Id: I1c5446c1517f2e0cd708d3275b08d2bce4be0ea8 Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/56396 Reviewed-by: Raul Rangel Reviewed-by: Matt Papageorge Reviewed-by: Nikolai Vyssotski Tested-by: build bot (Jenkins) --- src/include/device/pci_ids.h | 3 ++- src/soc/amd/common/block/graphics/graphics.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/include/device/pci_ids.h b/src/include/device/pci_ids.h index f3f16fb433..24e8426a41 100644 --- a/src/include/device/pci_ids.h +++ b/src/include/device/pci_ids.h @@ -506,7 +506,8 @@ #define PCI_DEVICE_ID_ATI_FAM17H_MODEL18H_GPU 0x15D8 #define PCI_DEVICE_ID_ATI_FAM17H_MODEL60H_GPU 0x1636 #define PCI_DEVICE_ID_ATI_FAM17H_MODEL68H_GPU 0x164C -#define PCI_DEVICE_ID_ATI_FAM19H_MODEL51H_GPU 0x1638 +#define PCI_DEVICE_ID_ATI_FAM19H_MODEL51H_GPU_CEZANNE 0x1638 +#define PCI_DEVICE_ID_ATI_FAM19H_MODEL51H_GPU_BARCELO 0x15e7 #define PCI_DEVICE_ID_ATI_FAM17H_MODEL18H_HDA0 0x15DE #define PCI_DEVICE_ID_ATI_FAM17H_MODEL60H_HDA0 0x1637 diff --git a/src/soc/amd/common/block/graphics/graphics.c b/src/soc/amd/common/block/graphics/graphics.c index 071dfcc7c5..79df6267e5 100644 --- a/src/soc/amd/common/block/graphics/graphics.c +++ b/src/soc/amd/common/block/graphics/graphics.c @@ -180,7 +180,8 @@ static const struct device_operations graphics_ops = { static const unsigned short pci_device_ids[] = { PCI_DEVICE_ID_ATI_FAM17H_MODEL18H_GPU, - PCI_DEVICE_ID_ATI_FAM19H_MODEL51H_GPU, + PCI_DEVICE_ID_ATI_FAM19H_MODEL51H_GPU_CEZANNE, + PCI_DEVICE_ID_ATI_FAM19H_MODEL51H_GPU_BARCELO, 0, };