summaryrefslogtreecommitdiff
path: root/util/amdfwtool
diff options
context:
space:
mode:
authorMartin Roth <martin.roth@amd.corp-partner.google.com>2022-10-06 17:18:02 -0600
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2022-10-10 21:45:07 +0000
commit134908381f2b25063558f2ce1414fa70243c9c55 (patch)
tree0de689b896af6e3ac755d4e4dbb9a4588f164fa0 /util/amdfwtool
parenta46fd869100367bbc599ac5c6a6f780048669f94 (diff)
util/amdfwtool: Add preliminary code for morgana & glinda SOCs
This allows amdfwtool to recognize the names for the upcoming morgana and glinda SoCs. It does not yet do anything for those SoCs, but this allows the morgana SoC to build. Signed-off-by: Martin Roth <martin.roth@amd.corp-partner.google.com> Change-Id: I766ce4a5863c55cbc4bef074ac5219b498c48c7f Reviewed-on: https://review.coreboot.org/c/coreboot/+/68193 Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/amdfwtool')
-rw-r--r--util/amdfwtool/amdfwtool.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c
index d5b8d92a01..a93ec87612 100644
--- a/util/amdfwtool/amdfwtool.c
+++ b/util/amdfwtool/amdfwtool.c
@@ -204,7 +204,7 @@ static void usage(void)
printf(" area\n");
printf("--soc-name <socname> Specify SOC name. Supported names are\n");
printf(" Stoneyridge, Raven, Picasso, Renoir, Cezanne\n");
- printf(" or Lucienne\n");
+ printf(" Morgana, Glinda, or Lucienne\n");
printf("\nEmbedded Firmware Structure options used by the PSP:\n");
printf("--spi-speed <HEX_VAL> SPI fast speed to place in EFS Table\n");
printf(" 0x0 66.66Mhz\n");
@@ -625,6 +625,8 @@ enum platform {
PLATFORM_CEZANNE,
PLATFORM_MENDOCINO,
PLATFORM_LUCIENNE,
+ PLATFORM_MORGANA,
+ PLATFORM_GLINDA
};
static uint32_t get_psp_id(enum platform soc_id)
@@ -1904,6 +1906,10 @@ static int set_efs_table(uint8_t soc_id, amd_cb_config *cb_config,
return 1;
}
break;
+ /* TODO: Update for morgana and glinda */
+ case PLATFORM_MORGANA:
+ case PLATFORM_GLINDA:
+ break;
case PLATFORM_UNKNOWN:
default:
fprintf(stderr, "Error: Invalid SOC name.\n\n");
@@ -1928,6 +1934,10 @@ static int identify_platform(char *soc_name)
return PLATFORM_RENOIR;
else if (!strcasecmp(soc_name, "Lucienne"))
return PLATFORM_LUCIENNE;
+ else if (!strcasecmp(soc_name, "Morgana"))
+ return PLATFORM_MORGANA;
+ else if (!strcasecmp(soc_name, "Glinda"))
+ return PLATFORM_GLINDA;
else
return PLATFORM_UNKNOWN;