summaryrefslogtreecommitdiff
path: root/util/amdfwtool/amdfwtool.c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2022-03-29 02:34:11 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-03-30 23:41:53 +0000
commitb18a4c7d0d99503c0aa8f2b387af077a994ab4b2 (patch)
treef5acdbbfb58ac71ac88785c84e3ea6a5bf8190eb /util/amdfwtool/amdfwtool.c
parent830add6e27a63670f16c2d5c76576fa64abf38d5 (diff)
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 <fishbaozi@gmail.com> Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ibe52b44395619f697686bd900a522562abbe7646 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63185 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'util/amdfwtool/amdfwtool.c')
-rw-r--r--util/amdfwtool/amdfwtool.c6
1 files changed, 6 insertions, 0 deletions
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: