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>
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c
index 4b76228..80595ddb 100644
--- a/util/amdfwtool/amdfwtool.c
+++ b/util/amdfwtool/amdfwtool.c
@@ -1458,6 +1458,14 @@
 
 }
 
+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 @@
 		}
 	}
 
+	if (needs_ish(soc_id))
+		cb_config.need_ish = true;
+
 	if (cb_config.need_ish)
 		cb_config.recovery_ab = true;