From 8ffa024a95fcb8462af56cbf3f0caeb1b6559980 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Mon, 24 Jul 2023 14:45:13 +0200 Subject: [PATCH] spiFlash: temporary disable read extended (#345) --- src/spiFlash.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/spiFlash.cpp b/src/spiFlash.cpp index e97cc6c..616348a 100644 --- a/src/spiFlash.cpp +++ b/src/spiFlash.cpp @@ -73,6 +73,9 @@ /* */ #define FLASH_WRVECR 0x61 #define FLASH_RDVECR 0x65 +/* reset-enable + reset */ +#define FLASH_RSTEN 0x66 +#define FLASH_RST 0x99 /* microchip SST26VF032B / SST26VF032BA */ /* Read Block Protection Register */ @@ -500,6 +503,8 @@ void SPIFlash::reset() uint8_t data[8]; memset(data, 0xff, 8); _spi->spi_put(0xff, data, NULL, 8); + _spi->spi_put(FLASH_RSTEN, NULL, NULL, 0); + _spi->spi_put(FLASH_RST, NULL, NULL, 0); } void SPIFlash::read_id() @@ -533,11 +538,11 @@ void SPIFlash::read_id() printInfo(content); } else { /* read extended */ - if ((_jedec_id & 0xff) != 0) { + /*if ((_jedec_id & 0xff) != 0) { has_edid = true; len += (_jedec_id & 0x0ff); _spi->spi_put(0x9F, NULL, rx, len); - } + }*/ /* must be 0x20BA1810 ... */