summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2014-10-17 00:19:34 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-21 00:44:22 +0000
commit017b4478b238b3f32beca47fd7106c51ebca922e (patch)
tree3af9e140d0358219c56a41f4dca648aa15a3d541
parenteb939f655c4c82097a6731a5b4ebc4c3e8279b37 (diff)
downloadchrome-ec-017b4478b238b3f32beca47fd7106c51ebca922e.tar.gz
Fix flash bank size for STM32F373
The write protect granularity is 4-page instead of 2-page, so the bank size should be 8K. BRANCH=None BUG=chrome-os-partner:32660 TEST=None Change-Id: Ifb8be289cc0d05cbe538062ad860727c9a652943 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/223891 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--chip/stm32/config-stm32f373.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/config-stm32f373.h b/chip/stm32/config-stm32f373.h
index 8ceaa51a4d..2b742bafdf 100644
--- a/chip/stm32/config-stm32f373.h
+++ b/chip/stm32/config-stm32f373.h
@@ -7,7 +7,7 @@
#define CONFIG_FLASH_BASE 0x08000000
#define CONFIG_FLASH_PHYSICAL_SIZE 0x00040000
#define CONFIG_FLASH_SIZE CONFIG_FLASH_PHYSICAL_SIZE
-#define CONFIG_FLASH_BANK_SIZE 0x1000
+#define CONFIG_FLASH_BANK_SIZE 0x2000
#define CONFIG_FLASH_ERASE_SIZE 0x0800 /* erase bank size */
#define CONFIG_FLASH_WRITE_SIZE 0x0002 /* minimum write size */