amdfwtool: Add missing code for checking new family phoenix & glinda

Change-Id: Ib82f6c03b93d277f3f7f27ce57c1a41fdc103575
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69046
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
This commit is contained in:
Zheng Bao 2022-10-16 20:32:43 +08:00 committed by Martin L Roth
parent 8eba6625ce
commit de6f198619
1 changed files with 13 additions and 5 deletions

View File

@ -721,6 +721,12 @@ static uint32_t get_psp_id(enum platform soc_id)
case PLATFORM_STONEYRIDGE:
psp_id = 0x10220B00;
break;
case PLATFORM_GLINDA:
psp_id = 0xBC0E0200;
break;
case PLATFORM_PHOENIX:
psp_id = 0xBC0D0400;
break;
default:
psp_id = 0;
break;
@ -1962,6 +1968,8 @@ static int set_efs_table(uint8_t soc_id, amd_cb_config *cb_config,
case PLATFORM_LUCIENNE:
case PLATFORM_CEZANNE:
case PLATFORM_MENDOCINO:
case PLATFORM_PHOENIX:
case PLATFORM_GLINDA:
amd_romsig->spi_readmode_f17_mod_30_3f = efs_spi_readmode;
amd_romsig->spi_fastspeed_f17_mod_30_3f = efs_spi_speed;
switch (efs_spi_micron_flag) {
@ -1979,10 +1987,6 @@ static int set_efs_table(uint8_t soc_id, amd_cb_config *cb_config,
return 1;
}
break;
/* TODO: Update for phoenix and glinda */
case PLATFORM_PHOENIX:
case PLATFORM_GLINDA:
break;
case PLATFORM_UNKNOWN:
default:
fprintf(stderr, "Error: Invalid SOC name.\n\n");
@ -2066,7 +2070,7 @@ static int identify_platform(char *soc_name)
static bool needs_ish(enum platform platform_type)
{
if (platform_type == PLATFORM_MENDOCINO)
if (platform_type == PLATFORM_MENDOCINO || platform_type == PLATFORM_PHOENIX || platform_type == PLATFORM_GLINDA)
return true;
else
return false;
@ -2083,6 +2087,8 @@ static bool is_second_gen(enum platform platform_type)
case PLATFORM_LUCIENNE:
case PLATFORM_CEZANNE:
case PLATFORM_MENDOCINO:
case PLATFORM_PHOENIX:
case PLATFORM_GLINDA:
return true;
case PLATFORM_UNKNOWN:
default:
@ -2616,6 +2622,8 @@ int main(int argc, char **argv)
amd_romsig->bios3_entry = BUFF_TO_RUN(ctx, biosdir);
break;
case PLATFORM_MENDOCINO:
case PLATFORM_PHOENIX:
case PLATFORM_GLINDA:
break;
case PLATFORM_STONEYRIDGE:
case PLATFORM_RAVEN: