amdfwtool: Add new SOC mendocino

Change-Id: I54492600dd954a5585ce3b1d842d264a4a50907a
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56936
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Zheng Bao 2021-08-12 16:30:19 +08:00 committed by Martin Roth
parent b4f4477e2a
commit 535ec536ea
1 changed files with 6 additions and 0 deletions

View File

@ -1144,6 +1144,7 @@ enum platform {
PLATFORM_PICASSO, PLATFORM_PICASSO,
PLATFORM_RENOIR, PLATFORM_RENOIR,
PLATFORM_CEZANNE, PLATFORM_CEZANNE,
PLATFORM_MENDOCINO,
PLATFORM_LUCIENNE, PLATFORM_LUCIENNE,
}; };
@ -1181,6 +1182,7 @@ static int set_efs_table(uint8_t soc_id, embedded_firmware *amd_romsig,
case PLATFORM_RENOIR: case PLATFORM_RENOIR:
case PLATFORM_LUCIENNE: case PLATFORM_LUCIENNE:
case PLATFORM_CEZANNE: case PLATFORM_CEZANNE:
case PLATFORM_MENDOCINO:
amd_romsig->efs_gen.gen = EFS_SECOND_GEN; amd_romsig->efs_gen.gen = EFS_SECOND_GEN;
amd_romsig->spi_readmode_f17_mod_30_3f = efs_spi_readmode; amd_romsig->spi_readmode_f17_mod_30_3f = efs_spi_readmode;
amd_romsig->spi_fastspeed_f17_mod_30_3f = efs_spi_speed; amd_romsig->spi_fastspeed_f17_mod_30_3f = efs_spi_speed;
@ -1217,6 +1219,8 @@ static int identify_platform(char *soc_name)
return PLATFORM_PICASSO; return PLATFORM_PICASSO;
else if (!strcasecmp(soc_name, "Cezanne")) else if (!strcasecmp(soc_name, "Cezanne"))
return PLATFORM_CEZANNE; return PLATFORM_CEZANNE;
else if (!strcasecmp(soc_name, "Mendocino"))
return PLATFORM_MENDOCINO;
else if (!strcasecmp(soc_name, "Renoir")) else if (!strcasecmp(soc_name, "Renoir"))
return PLATFORM_RENOIR; return PLATFORM_RENOIR;
else if (!strcasecmp(soc_name, "Lucienne")) else if (!strcasecmp(soc_name, "Lucienne"))
@ -1618,6 +1622,8 @@ int main(int argc, char **argv)
case PLATFORM_CEZANNE: case PLATFORM_CEZANNE:
amd_romsig->bios3_entry = BUFF_TO_RUN(ctx, biosdir); amd_romsig->bios3_entry = BUFF_TO_RUN(ctx, biosdir);
break; break;
case PLATFORM_MENDOCINO:
break;
case PLATFORM_STONEYRIDGE: case PLATFORM_STONEYRIDGE:
case PLATFORM_RAVEN: case PLATFORM_RAVEN:
case PLATFORM_PICASSO: case PLATFORM_PICASSO: