diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2017-06-28 16:07:02 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-28 21:50:51 -0700 |
commit | 75efd78a59486cbcfb111ef314bafca67bc8d993 (patch) | |
tree | 644e6ef05c5e60190a8da3e7ac5a94bc70492028 /board/stm32l476g-eval | |
parent | af160d8201a2ea62d679a7d8a7878af8513ae880 (diff) | |
download | chrome-ec-75efd78a59486cbcfb111ef314bafca67bc8d993.tar.gz |
eCTS: Expedite flashing time
eCTS tests are small. We can use smaller flash size to expedite
tests. This patch reduces flashing time for stm32l476 from 24 sec
to 6 sec.
BUG=chromium:736020
BRANCH=none
TEST=python util/run_ects.py
Change-Id: I829ee2c947664f2d7ed373f52ff336e9a9580817
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/553580
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/stm32l476g-eval')
-rw-r--r-- | board/stm32l476g-eval/board.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/stm32l476g-eval/board.h b/board/stm32l476g-eval/board.h index 12a83fc8fb..4b8033207b 100644 --- a/board/stm32l476g-eval/board.h +++ b/board/stm32l476g-eval/board.h @@ -8,6 +8,12 @@ #ifndef __CROS_EC_BOARD_H #define __CROS_EC_BOARD_H +#ifdef CTS_MODULE +/* CTS tests are small. We can use smaller size to expedite flash time. */ +#undef CONFIG_FLASH_SIZE +#define CONFIG_FLASH_SIZE 0x00040000 /* 256k */ +#endif + /* Optional features */ #undef CONFIG_WATCHDOG_HELP #undef CONFIG_LID_SWITCH |