aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/stm32f1x.c
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2012-09-10 11:16:20 +0100
committerFreddie Chopin <freddie.chopin@gmail.com>2012-10-02 11:27:30 +0000
commit0b98ca361090c9a407394da0b31938e46e1c4bf0 (patch)
tree865cce60987e8bef051781fe80116ffba186542d /src/flash/nor/stm32f1x.c
parent5ed9eb61606694bb6d1b2f3f019ffea0f5b07be5 (diff)
downloadriscv-openocd-0b98ca361090c9a407394da0b31938e46e1c4bf0.zip
riscv-openocd-0b98ca361090c9a407394da0b31938e46e1c4bf0.tar.gz
riscv-openocd-0b98ca361090c9a407394da0b31938e46e1c4bf0.tar.bz2
flash: add stm32f3 rev 2 flash support
Change-Id: Ibab5112f5f70a609136d01ebc50530a334640d03 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/809 Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/flash/nor/stm32f1x.c')
-rw-r--r--src/flash/nor/stm32f1x.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c
index f077fe5..f6eb21b 100644
--- a/src/flash/nor/stm32f1x.c
+++ b/src/flash/nor/stm32f1x.c
@@ -1142,6 +1142,10 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size)
snprintf(buf, buf_size, "1.0");
break;
+ case 0x2000:
+ snprintf(buf, buf_size, "2.0");
+ break;
+
default:
snprintf(buf, buf_size, "unknown");
break;
@@ -1188,6 +1192,10 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size)
snprintf(buf, buf_size, "1.0");
break;
+ case 0x2000:
+ snprintf(buf, buf_size, "2.0");
+ break;
+
default:
snprintf(buf, buf_size, "unknown");
break;