mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
boot/alif: Disable swap for alternate flashes.
Now that alt flashes use 8-bit DFS. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
parent
bc6200378e
commit
629a672992
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user