diff options
author | Zheng Bao <fishbaozi@gmail.com> | 2022-10-16 20:32:43 +0800 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2023-01-22 18:55:36 +0000 |
commit | de6f1986193996b9f54ea7bcc6cf0a32801e7acf (patch) | |
tree | 2c0eed16e4bbb73343de34856cadb24a689275de /util/amdfwtool/amdfwtool.c | |
parent | 8eba6625ce659630f2cc2bffd5ce43aa773f66dc (diff) |
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>
Diffstat (limited to 'util/amdfwtool/amdfwtool.c')
-rw-r--r-- | util/amdfwtool/amdfwtool.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index b23ee4701d..fd5c811b1e 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -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: |