aboutsummaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2014-05-23 07:55:21 +0400
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2014-05-31 12:05:25 +0000
commitf97678f3a61c0739a00791509a2a3f7d4e8616a6 (patch)
tree1345811040fc24392bda515380cbeaaa0543e8b8 /src/flash
parent558279c1bb6fb2e39b68ac5020f5cb8271e54a9d (diff)
flash/nor/stm32f1x: add support for F04x parts
Ref. RM0091 Rev.6. Change-Id: I13bcdb1741edc59712e4fa1849fff38d17709fa7 Reported-by: efuentes@irc.freenode.net Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2150 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/nor/stm32f1x.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c
index aacf6dcd..4e97eaec 100644
--- a/src/flash/nor/stm32f1x.c
+++ b/src/flash/nor/stm32f1x.c
@@ -923,6 +923,7 @@ static int stm32x_probe(struct flash_bank *bank)
break;
case 0x440: /* stm32f05x */
case 0x444: /* stm32f03x */
+ case 0x445: /* stm32f04x */
page_size = 1024;
stm32x_info->ppage_size = 4;
max_flash_size_in_kb = 64;
@@ -1203,6 +1204,20 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size)
}
break;
+ case 0x445:
+ device_str = "STM32F04x";
+
+ switch (rev_id) {
+ case 0x1000:
+ rev_str = "1.0";
+ break;
+
+ case 0x2000:
+ rev_str = "2.0";
+ break;
+ }
+ break;
+
case 0x448:
device_str = "STM32F07x";