diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2015-04-30 14:00:55 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-05-01 01:08:14 +0000 |
commit | edd77863800f47ebf642859cebfd32c48b0ff5ca (patch) | |
tree | 7c00d37cbea7155eb7da6bdf6a49aadebe39bccc | |
parent | 7cc3136da56eaea8cfa7f9139ebaf6361707ade2 (diff) | |
download | chrome-ec-edd77863800f47ebf642859cebfd32c48b0ff5ca.tar.gz |
cr50: uart: increase console tx buffer sizze
Sometimes default buffer size in not enough to collect debug
information generated before console is initialized.
This helps when debugging, allowing to enable fairly large amount of
data printed before console is available, could be reduced if memory
becomes tight.
BRANCH=none
BUG=none
TEST=early debug information previously truncated is printed fully
now.
Change-Id: I647c6064a44f7558414f72f399280b5780a4b1ec
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/268640
-rw-r--r-- | board/cr50/board.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h index 2682ba83ab..be43d755eb 100644 --- a/board/cr50/board.h +++ b/board/cr50/board.h @@ -64,4 +64,13 @@ enum usb_strings { #define USB_EP_HID 2 #define USB_EP_COUNT 3 +/* + * This would be a low hanging fruit if there is a need to reduce memory + * footprint. Having a large buffer helps not to drop debug outputs generated + * before console is initialized, but this is not really necessary in a + * production device. + */ +#undef CONFIG_UART_TX_BUF_SIZE +#define CONFIG_UART_TX_BUF_SIZE 4096 + #endif /* __BOARD_H */ |