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>
This commit is contained in:
Spencer Oliver 2012-09-10 11:16:20 +01:00 committed by Freddie Chopin
parent 5ed9eb6160
commit 0b98ca3610
1 changed files with 8 additions and 0 deletions

View File

@ -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;