diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-05-01 17:32:17 -0700 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-05-09 01:13:26 +0000 |
commit | 71c86b38c3862da28368acf0d44779eb1fcc088b (patch) | |
tree | 8e7b6448217c7db7d32d5d05d6aca28e9dd95803 /board/daisy | |
parent | 87b427829993e7c5b2fb66fc1e134ace43d28cf9 (diff) | |
download | chrome-ec-71c86b38c3862da28368acf0d44779eb1fcc088b.tar.gz |
stm32: add flash programming support
Implements the on-chip flash erasing and writing functions.
The actual writing is done from a routine in internal RAM (using the
special .iram.text section) with interrupt disabled as we cannot read
flash during the writing process.
The write-protect feature is only lightly tested.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:8865
TEST=run on Daisy, from the EC console, use flasherase and flashwrite
commands and observe the results using rw command.
Change-Id: I4c64cf28b23df52b18500b42a32a7d3668d45ba6
Diffstat (limited to 'board/daisy')
-rw-r--r-- | board/daisy/board.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/daisy/board.h b/board/daisy/board.h index ceefa5e38e..c29701382c 100644 --- a/board/daisy/board.h +++ b/board/daisy/board.h @@ -14,6 +14,9 @@ /* Use USART1 as console serial port */ #define CONFIG_CONSOLE_UART 1 +/* support programming on-chip flash */ +#define CONFIG_FLASH + #define USB_CHARGE_PORT_COUNT 0 /* GPIO signal list */ |