From 8a09cbd33689de53f269f939d902b66e135ae8cf Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 12 Jan 2022 23:23:32 +0100 Subject: [PATCH] soc/amd/sabrina: drop graphics.c Since we don't need to support PCI ID remapping for finding the correct VBIOS binary for the integrated GPU, graphics.c can be dropped for now. Signed-off-by: Felix Held Change-Id: Ifd5b678f472b3b5888353efd057203eb641be874 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61088 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson --- src/soc/amd/sabrina/Makefile.inc | 1 - src/soc/amd/sabrina/graphics.c | 21 --------------------- src/soc/amd/sabrina/include/soc/cpu.h | 5 ----- 3 files changed, 27 deletions(-) delete mode 100644 src/soc/amd/sabrina/graphics.c diff --git a/src/soc/amd/sabrina/Makefile.inc b/src/soc/amd/sabrina/Makefile.inc index 734f1524ef..2beb6dec77 100644 --- a/src/soc/amd/sabrina/Makefile.inc +++ b/src/soc/amd/sabrina/Makefile.inc @@ -39,7 +39,6 @@ ramstage-y += data_fabric.c ramstage-y += fch.c ramstage-y += fsp_s_params.c ramstage-y += gpio.c -ramstage-y += graphics.c ramstage-y += i2c.c ramstage-y += mca.c ramstage-y += preload.c diff --git a/src/soc/amd/sabrina/graphics.c b/src/soc/amd/sabrina/graphics.c deleted file mode 100644 index b65ef8855f..0000000000 --- a/src/soc/amd/sabrina/graphics.c +++ /dev/null @@ -1,21 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -/* TODO: Check if this is still correct */ - -#include -#include -#include - -u32 map_oprom_vendev(u32 vendev) -{ - u32 new_vendev = vendev; - - switch (vendev) { - case CEZANNE_VBIOS_VID_DID: - case BARCELO_VBIOS_VID_DID: - new_vendev = CEZANNE_VBIOS_VID_DID; - break; - } - - return new_vendev; -} diff --git a/src/soc/amd/sabrina/include/soc/cpu.h b/src/soc/amd/sabrina/include/soc/cpu.h index 9aa07b0053..b7578139de 100644 --- a/src/soc/amd/sabrina/include/soc/cpu.h +++ b/src/soc/amd/sabrina/include/soc/cpu.h @@ -1,13 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -/* TODO: Check if this is still correct */ - #ifndef AMD_SABRINA_CPU_H #define AMD_SABRINA_CPU_H #define SABRINA_A0_CPUID 0x008a0f00 -#define CEZANNE_VBIOS_VID_DID 0x10021638 -#define BARCELO_VBIOS_VID_DID 0x100215e7 - #endif /* AMD_SABRINA_CPU_H */