From edd77863800f47ebf642859cebfd32c48b0ff5ca Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 30 Apr 2015 14:00:55 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/268640 --- board/cr50/board.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 */ -- cgit v1.2.1