aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/spi.c
diff options
context:
space:
mode:
authorMahavir Jain <mjain@marvell.com>2015-10-16 15:12:36 +0530
committerFreddie Chopin <freddie.chopin@gmail.com>2015-11-05 22:28:24 +0000
commitfabbb880ec0ee4a6779dc40c65c999fe81eb484e (patch)
treea666b6a62b8e7a950ff697705869f935f709a7af /src/flash/nor/spi.c
parentd83fb242e09b35c885057c78c8503ddd67e5e980 (diff)
downloadriscv-openocd-fabbb880ec0ee4a6779dc40c65c999fe81eb484e.zip
riscv-openocd-fabbb880ec0ee4a6779dc40c65c999fe81eb484e.tar.gz
riscv-openocd-fabbb880ec0ee4a6779dc40c65c999fe81eb484e.tar.bz2
flash/nor/spi: Add GigaDevice gd25q16c/32c/128c flash support
Change-Id: I44052fd3467d7e0bbdc038b815204e39fa499684 Signed-off-by: Mahavir Jain <mjain@marvell.com> Reviewed-on: http://openocd.zylin.com/3029 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/flash/nor/spi.c')
-rw-r--r--src/flash/nor/spi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/flash/nor/spi.c b/src/flash/nor/spi.c
index 1145845..fdbdec4 100644
--- a/src/flash/nor/spi.c
+++ b/src/flash/nor/spi.c
@@ -76,6 +76,9 @@ const struct flash_device flash_devices[] = {
FLASH_ID("win w25q64cv", 0xd8, 0xc7, 0x001740ef, 0x100, 0x10000, 0x800000),
FLASH_ID("win w25q128fv", 0xd8, 0xc7, 0x001840ef, 0x100, 0x10000, 0x1000000),
FLASH_ID("gd gd25q20", 0x20, 0xc7, 0x00c84012, 0x100, 0x1000, 0x80000),
+ FLASH_ID("gd gd25q16c", 0xd8, 0xc7, 0x001540c8, 0x100, 0x10000, 0x200000),
+ FLASH_ID("gd gd25q32c", 0xd8, 0xc7, 0x001640c8, 0x100, 0x10000, 0x400000),
+ FLASH_ID("gd gd25q128c", 0xd8, 0xc7, 0x001840c8, 0x100, 0x10000, 0x1000000),
FLASH_ID("micron n25q128", 0xd8, 0xc7, 0x0018ba20, 0x100, 0x10000, 0x1000000),
FLASH_ID(NULL, 0, 0, 0, 0, 0, 0)
};