From 0b98ca361090c9a407394da0b31938e46e1c4bf0 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Mon, 10 Sep 2012 11:16:20 +0100 Subject: [PATCH] flash: add stm32f3 rev 2 flash support Change-Id: Ibab5112f5f70a609136d01ebc50530a334640d03 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/809 Tested-by: jenkins Reviewed-by: Freddie Chopin --- src/flash/nor/stm32f1x.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c index f077fe54..f6eb21b6 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; -- 2.39.5