util/amdfwtool: add PLATFORM_FAEGAN
Add the PLATFORM_FAEGAN element to the 'platform' enum and use it in the code. The Faegan SoC is similar to the Glinda SoC, but has a different PSP ID. Change-Id: I40a3e9981696fc02a44fbf300d1b47060a4a398b Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86940 Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Ana Carolina Cabral <ana.cpmelo95@gmail.com>
This commit is contained in:
parent
730b2b506b
commit
fe344ea507
4 changed files with 14 additions and 1 deletions
|
|
@ -117,6 +117,8 @@ static enum platform identify_platform(char *soc_name)
|
|||
return PLATFORM_GLINDA;
|
||||
else if (!strcasecmp(soc_name, "Genoa"))
|
||||
return PLATFORM_GENOA;
|
||||
else if (!strcasecmp(soc_name, "Faegan"))
|
||||
return PLATFORM_FAEGAN;
|
||||
else
|
||||
return PLATFORM_UNKNOWN;
|
||||
}
|
||||
|
|
@ -725,7 +727,8 @@ static uint8_t process_one_line(char *oneline, regmatch_t *match, char *dir,
|
|||
|
||||
bool needs_ish(enum platform platform_type)
|
||||
{
|
||||
if (platform_type == PLATFORM_MENDOCINO || platform_type == PLATFORM_PHOENIX || platform_type == PLATFORM_GLINDA)
|
||||
if (platform_type == PLATFORM_MENDOCINO || platform_type == PLATFORM_PHOENIX ||
|
||||
platform_type == PLATFORM_GLINDA || platform_type == PLATFORM_FAEGAN)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
|
@ -746,6 +749,7 @@ static bool is_second_gen(enum platform platform_type)
|
|||
case PLATFORM_PHOENIX:
|
||||
case PLATFORM_GLINDA:
|
||||
case PLATFORM_GENOA:
|
||||
case PLATFORM_FAEGAN:
|
||||
return true;
|
||||
case PLATFORM_UNKNOWN:
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue