From b18a4c7d0d99503c0aa8f2b387af077a994ab4b2 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 29 Mar 2022 02:34:11 +0200 Subject: [PATCH] util/amdfwtool: add Sabrina SoC type Add PLATFORM_SABRINA to the enum of supported platforms and integrate it into the existing code. Signed-off-by: Zheng Bao Signed-off-by: Felix Held Change-Id: Ibe52b44395619f697686bd900a522562abbe7646 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63185 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- util/amdfwtool/amdfwtool.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index 7c977a2cdf..4b76228912 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -558,6 +558,7 @@ enum platform { PLATFORM_CEZANNE, PLATFORM_MENDOCINO, PLATFORM_LUCIENNE, + PLATFORM_SABRINA, }; static uint32_t get_psp_id(enum platform soc_id) @@ -576,6 +577,7 @@ static uint32_t get_psp_id(enum platform soc_id) psp_id = 0xBC0C0140; break; case PLATFORM_MENDOCINO: + case PLATFORM_SABRINA: psp_id = 0xBC0D0900; break; case PLATFORM_STONEYRIDGE: @@ -1406,6 +1408,7 @@ static int set_efs_table(uint8_t soc_id, embedded_firmware *amd_romsig, case PLATFORM_LUCIENNE: case PLATFORM_CEZANNE: case PLATFORM_MENDOCINO: + case PLATFORM_SABRINA: amd_romsig->efs_gen.gen = EFS_SECOND_GEN; amd_romsig->spi_readmode_f17_mod_30_3f = efs_spi_readmode; amd_romsig->spi_fastspeed_f17_mod_30_3f = efs_spi_speed; @@ -1448,6 +1451,8 @@ static int identify_platform(char *soc_name) return PLATFORM_RENOIR; else if (!strcasecmp(soc_name, "Lucienne")) return PLATFORM_LUCIENNE; + else if (!strcasecmp(soc_name, "Sabrina")) + return PLATFORM_SABRINA; else return PLATFORM_UNKNOWN; @@ -1898,6 +1903,7 @@ int main(int argc, char **argv) amd_romsig->bios3_entry = BUFF_TO_RUN(ctx, biosdir); break; case PLATFORM_MENDOCINO: + case PLATFORM_SABRINA: break; case PLATFORM_STONEYRIDGE: case PLATFORM_RAVEN: