From: Fawaz Tirmizi Date: Fri, 19 Aug 2022 21:22:06 +0000 (-0700) Subject: flash/nor/spi: Add issi is25lq040b to device list X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=9a7781ff8c9dea6ef5998238b1932094b8a226da;hp=0708ccead4fbce07e3d78bb7380aca0aae8cb14d flash/nor/spi: Add issi is25lq040b to device list The HiFive Inventor uses this flash chip, so adding it will allow for openocd to be used to program it. These values were taken from the chip's documentation. Signed-off-by: Fawaz Tirmizi Change-Id: I15c9d35f99d4500f73134cdc2d1b9ab6279b491c Reviewed-on: https://review.openocd.org/c/openocd/+/7135 Tested-by: jenkins Reviewed-by: Antonio Borneo --- diff --git a/src/flash/nor/spi.c b/src/flash/nor/spi.c index eed747b585..373a9a1441 100644 --- a/src/flash/nor/spi.c +++ b/src/flash/nor/spi.c @@ -112,6 +112,7 @@ const struct flash_device flash_devices[] = { FLASH_ID("gd gd25q128c", 0x03, 0xeb, 0x02, 0xd8, 0xc7, 0x001840c8, 0x100, 0x10000, 0x1000000), FLASH_ID("gd gd25q256c", 0x13, 0x00, 0x12, 0xdc, 0xc7, 0x001940c8, 0x100, 0x10000, 0x2000000), FLASH_ID("gd gd25q512mc", 0x13, 0x00, 0x12, 0xdc, 0xc7, 0x002040c8, 0x100, 0x10000, 0x4000000), + FLASH_ID("issi is25lq040b", 0x03, 0xeb, 0x02, 0x20, 0xc7, 0x0013409d, 0x100, 0x1000, 0x80000), FLASH_ID("issi is25lp032", 0x03, 0x00, 0x02, 0xd8, 0xc7, 0x0016609d, 0x100, 0x10000, 0x400000), FLASH_ID("issi is25lp064", 0x03, 0x00, 0x02, 0xd8, 0xc7, 0x0017609d, 0x100, 0x10000, 0x800000), FLASH_ID("issi is25lp128d", 0x03, 0xeb, 0x02, 0xd8, 0xc7, 0x0018609d, 0x100, 0x10000, 0x1000000),