From 629a672992f113d6d56599b611fb6d15741f79dd Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Mon, 31 Mar 2025 20:26:22 +0200 Subject: [PATCH] boot/alif: Disable swap for alternate flashes. Now that alt flashes use 8-bit DFS. Signed-off-by: iabdalkader --- src/boot/src/ports/alif/alif_ospi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/boot/src/ports/alif/alif_ospi.c b/src/boot/src/ports/alif/alif_ospi.c index 647fd85bc..e236a3039 100644 --- a/src/boot/src/ports/alif/alif_ospi.c +++ b/src/boot/src/ports/alif/alif_ospi.c @@ -291,9 +291,6 @@ static int ospi_flash_init(ospi_flash_t *ospi) { // Detect onboard flash based on ID. uint8_t id[3] = { 0 }; ospi_recv(ospi, OSPI_RDID_COMMAND, OSPI_ADDR_0BIT, 0, 3, id, OSPI_RDID_DCYCLES); - // The byte order of 16-bit words is swapped when written in 1-1-1 and read back - // in 8D-8D-8D. The MX chips seems to be the only one that doesn't swap 16-bit words. - ospi->bswap16 = id[0] != 0xC2; ospi->initialized = true; return 0; }