amdfwtool: Call the set_efs_table for Stoneyridge
Related to https://review.coreboot.org/c/coreboot/+/58555 commit-id: 35b7e0a2d82ac In 58555, we added the SOC ID for Stoneyridge in amdfwtool command line. But it raised building error because it then called "set_efs_table" without setting SPI mode. So we skipped calling that. But in set_efs_table, it has case for Stoneyridge. The boards also need to have this setting. So we remove the skipping and give the proper SPI mode in mainboard Kconfig. Change-Id: I24499ff6daf7878b12b6044496f53379116c598f Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58871 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
@@ -1586,13 +1586,11 @@ int main(int argc, char **argv)
|
||||
amd_romsig->xhci_entry = 0;
|
||||
|
||||
if (soc_id != PLATFORM_UNKNOWN) {
|
||||
if (soc_id != PLATFORM_STONEYRIDGE) {
|
||||
retval = set_efs_table(soc_id, amd_romsig, efs_spi_readmode,
|
||||
efs_spi_speed, efs_spi_micron_flag);
|
||||
if (retval) {
|
||||
fprintf(stderr, "ERROR: Failed to initialize EFS table!\n");
|
||||
return retval;
|
||||
}
|
||||
retval = set_efs_table(soc_id, amd_romsig, efs_spi_readmode,
|
||||
efs_spi_speed, efs_spi_micron_flag);
|
||||
if (retval) {
|
||||
fprintf(stderr, "ERROR: Failed to initialize EFS table!\n");
|
||||
return retval;
|
||||
}
|
||||
} else {
|
||||
fprintf(stderr, "WARNING: No SOC name specified.\n");
|
||||
|
Reference in New Issue
Block a user