This is an automated email from Gerrit.

"Nikolay Dimitrov <nikolay.dimit...@retrohub.org>" just uploaded a new patch 
set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7850

-- gerrit

commit 29f3b3dbcc1fa9eced04148d7674ea8187df38a1
Author: Nikolay Dimitrov <nikolay.dimit...@retrohub.org>
Date:   Fri Aug 4 23:56:49 2023 +0300

    flash/nor/spi: Improve erase performance on zd25q16
    
    Use blocks (64 KiB) instead of sectors (4 KiB) when erasing the zd25Q16
    SPI flash memory (thanks to Tomas Vanek!)
    
    Change-Id: I969a69ad35f51b84eb3e11b93f0d79db3e98613a
    Signed-off-by: Nikolay Dimitrov <nikolay.dimit...@retrohub.org>

diff --git a/src/flash/nor/spi.c b/src/flash/nor/spi.c
index d559567441..ace274f3dd 100644
--- a/src/flash/nor/spi.c
+++ b/src/flash/nor/spi.c
@@ -171,7 +171,7 @@ const struct flash_device flash_devices[] = {
        FLASH_ID("xtx xt25q32b",        0x03, 0x0b, 0x02, 0xd8, 0xc7, 
0x0016600b, 0x100, 0x10000, 0x400000), /* exists ? */
        FLASH_ID("xtx xt25q64b",        0x03, 0x0b, 0x02, 0xd8, 0xc7, 
0x0017600b, 0x100, 0x10000, 0x800000),
        FLASH_ID("xtx xt25q128b",       0x03, 0x0b, 0x02, 0xd8, 0xc7, 
0x0018600b, 0x100, 0x10000, 0x1000000),
-       FLASH_ID("zetta zd25q16",       0x03, 0x00, 0x02, 0x20, 0xc7, 
0x001560ba, 0x100, 0x1000, 0x200000),
+       FLASH_ID("zetta zd25q16",       0x03, 0x00, 0x02, 0xd8, 0xc7, 
0x001560ba, 0x100, 0x10000, 0x200000),
 
        /* FRAM, no erase commands, no write page or sectors */
        FRAM_ID("fu mb85rs16n",         0x03, 0,    0x02, 0x00010104, 0x800),

-- 

Reply via email to