[PATCH v2 19/21] ARM: Layerscape: LS1028a: extend layerscape image filetype detection for LS1028a

Sascha Hauer s.hauer at pengutronix.de
Tue Jan 9 08:15:25 PST 2024


The LS1028a images differ slightly from LS1046a images, extend its
filetype detection accordingly.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/filetype.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/filetype.c b/common/filetype.c
index 43d292c27b..14948db446 100644
--- a/common/filetype.c
+++ b/common/filetype.c
@@ -349,6 +349,8 @@ enum filetype file_detect_type(const void *_buf, size_t bufsize)
 		return filetype_layerscape_image;
 	if (buf[0] == 0x01ee0100 && buf[1] == 0xaa55aa55)
 		return filetype_layerscape_qspi_image;
+	if (buf[0] == 0xaa55aa55 && buf[1] == 0x80100000)
+		return filetype_layerscape_image;
 
 	if (le32_to_cpu(buf[0]) == 0x00112233 && le32_to_cpu(buf[1]) == 0x1)
 		return filetype_mxs_sd_image;
-- 
2.39.2




More information about the barebox mailing list