summaryrefslogtreecommitdiff
path: root/util/amdfwtool/amdfwtool.c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2022-03-29 23:28:49 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-03-30 23:42:14 +0000
commitf8e2e47e2b26d09742b51b9f04b5f9c5687edf44 (patch)
tree86e1647d290eda20cd7da7aea199eaae6da7c890 /util/amdfwtool/amdfwtool.c
parentb18a4c7d0d99503c0aa8f2b387af077a994ab4b2 (diff)
util/amdfwtool: use ISH support for Sabrina SoC
The PSP in the Sabrina SoC uses the image slot header to find the second level PSP directory table, so it needs the ISH to be generated. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I9e6308854147c9f6f72d722215c833ee86ee4f94 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63186 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/amdfwtool/amdfwtool.c')
-rw-r--r--util/amdfwtool/amdfwtool.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c
index 4b76228912..80595ddb0d 100644
--- a/util/amdfwtool/amdfwtool.c
+++ b/util/amdfwtool/amdfwtool.c
@@ -1458,6 +1458,14 @@ static int identify_platform(char *soc_name)
}
+static bool needs_ish(enum platform platform_type)
+{
+ if (platform_type == PLATFORM_SABRINA)
+ return true;
+ else
+ return false;
+}
+
int main(int argc, char **argv)
{
int c;
@@ -1689,6 +1697,9 @@ int main(int argc, char **argv)
}
}
+ if (needs_ish(soc_id))
+ cb_config.need_ish = true;
+
if (cb_config.need_ish)
cb_config.recovery_ab = true;