summaryrefslogtreecommitdiff
path: root/board/stm32f446e-eval
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-04-03 16:02:16 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-06-03 02:02:42 -0700
commit35f4d8acaa40050f10158459a04e0bf9b24149c6 (patch)
tree2fd1c6127874023ca44be4f3022704fdb29aa2f4 /board/stm32f446e-eval
parent5c9118b311ed1d4059b9e51c3defcf5bce62de04 (diff)
downloadchrome-ec-35f4d8acaa40050f10158459a04e0bf9b24149c6.tar.gz
Add flash command support to boards with STM32F4
Add support to write and erase all flash with flashrom. Add support to use all the memory. Note that PSTATE must not used its own page, as the STM32F4 use big pages. BUG=b:38018926 BRANCH=none TEST=With flashrom, write all, RO, RW regions. Use flash command on the console, including flashwp Change-Id: I4f0aee1b3a4f342bdf4ca97bf5d8e8bcc153fd9c Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/264032 Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org> Tested-by: Wei-Ning Huang <wnhuang@chromium.org> Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Diffstat (limited to 'board/stm32f446e-eval')
-rw-r--r--board/stm32f446e-eval/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/stm32f446e-eval/board.h b/board/stm32f446e-eval/board.h
index a346925b13..fa0b0177ef 100644
--- a/board/stm32f446e-eval/board.h
+++ b/board/stm32f446e-eval/board.h
@@ -13,6 +13,8 @@
#define CONFIG_BOARD_POST_GPIO_INIT
+#define CONFIG_FLASH_WRITE_SIZE STM32_FLASH_WRITE_SIZE_3300
+
/* Enable console recasting of GPIO type. */
#define CONFIG_CMD_GPIO_EXTENDED