diff options
author | Matthew Blecker <matthewb@chromium.org> | 2020-10-20 22:53:40 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-23 03:06:45 +0000 |
commit | b2cf27a0d1110454fbdaa5dbf1f00c1db4b08942 (patch) | |
tree | d5a231c5f3e3c9840e4104365732ca41651ecd6e /board/servo_v4p1 | |
parent | ddec094f2369633b4ebdf750a8f143123be9e692 (diff) | |
download | chrome-ec-b2cf27a0d1110454fbdaa5dbf1f00c1db4b08942.tar.gz |
servo_v4p1: Disable UART DMA to save flash space.
This also explicitly enables console on USART1 (PA9 + PA10), instead of
relying on chip/stm32/config_chip.h default.
Disabling DMA saves flash space. Before:
*** 28588 bytes in flash and 1036 bytes in RAM still available on servo_v4p1 RO ****
*** 256 bytes in flash and 4200 bytes in RAM still available on servo_v4p1 RW ****
After:
*** 28652 bytes in flash and 1036 bytes in RAM still available on servo_v4p1 RO ****
*** 280 bytes in flash and 4200 bytes in RAM still available on servo_v4p1 RW ****
BRANCH=none
BUG=b:144116746
TEST=servo_v4p1 RS232 console port continues to work (using 115200 baud 8N1)
Change-Id: I66b3dd6a9137fc2b179e1e87d3315d4acd7e9ea6
Signed-off-by: Matthew Blecker <matthewb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2488935
Reviewed-by: Brian Nemec <bnemec@chromium.org>
Diffstat (limited to 'board/servo_v4p1')
-rw-r--r-- | board/servo_v4p1/board.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/servo_v4p1/board.h b/board/servo_v4p1/board.h index 471dd93177..da5b670e9f 100644 --- a/board/servo_v4p1/board.h +++ b/board/servo_v4p1/board.h @@ -85,6 +85,12 @@ #define CONFIG_STREAM_USB #define CONFIG_CMD_USART_INFO +/* The UART console is on USART1 (PA9/PA10) */ +#undef CONFIG_UART_CONSOLE +#define CONFIG_UART_CONSOLE 1 +#undef CONFIG_UART_TX_DMA +#undef CONFIG_UART_RX_DMA + /* Optional features */ #define CONFIG_STM_HWTIMER32 #define CONFIG_HW_CRC |