summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2020-04-23 16:50:46 -0600
committerCommit Bot <commit-bot@chromium.org>2020-05-01 22:06:55 +0000
commite71c333908978fdbce67441060aa7467b83b2bc3 (patch)
tree117198c83072385d7ee97b557199c348f40af535
parentff7a100aaf125c95a7c88e70b409cb3e377ace43 (diff)
downloadchrome-ec-e71c333908978fdbce67441060aa7467b83b2bc3.tar.gz
Various boards: Shrink UART Tx buffer to save space
Future USB-PD discovery changes will need that space. In each case, reduce the size of the buffer by half (must be a power of 2). Note: This change is only to save shared memory space in the ToT build. It should not be picked onto release branches. BUG=b:152420269,b:152419795 TEST=make buildall BRANCH=none Change-Id: Ia26c1cdd7eb4068d410b81bb4a3335d2c9142049 Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2163795
-rw-r--r--board/dratini/board.h2
-rw-r--r--board/eve/board.h2
-rw-r--r--board/poppy/board.h2
-rw-r--r--board/rammus/board.h2
-rw-r--r--board/reef/board.h2
5 files changed, 7 insertions, 3 deletions
diff --git a/board/dratini/board.h b/board/dratini/board.h
index bd40963a62..963a4cb590 100644
--- a/board/dratini/board.h
+++ b/board/dratini/board.h
@@ -21,7 +21,7 @@
#define CONFIG_HOSTCMD_ESPI
#undef CONFIG_UART_TX_BUF_SIZE
-#define CONFIG_UART_TX_BUF_SIZE 4096
+#define CONFIG_UART_TX_BUF_SIZE 2048
/* Keyboard features */
#define CONFIG_PWM_KBLIGHT
diff --git a/board/eve/board.h b/board/eve/board.h
index d6d20267c6..b7afe3f462 100644
--- a/board/eve/board.h
+++ b/board/eve/board.h
@@ -54,6 +54,8 @@
(EC_WIRELESS_SWITCH_WLAN | EC_WIRELESS_SWITCH_WLAN_POWER)
#define WIRELESS_GPIO_WLAN GPIO_WLAN_OFF_L
#define WIRELESS_GPIO_WLAN_POWER GPIO_PP3300_DX_WLAN
+#undef CONFIG_UART_TX_BUF_SIZE
+#define CONFIG_UART_TX_BUF_SIZE 512
/* EC console commands */
#define CONFIG_CMD_ACCELS
diff --git a/board/poppy/board.h b/board/poppy/board.h
index d9f8cbc6e1..8d845632cd 100644
--- a/board/poppy/board.h
+++ b/board/poppy/board.h
@@ -144,7 +144,7 @@
#define CONFIG_TABLET_MODE_SWITCH
#undef CONFIG_UART_TX_BUF_SIZE
-#define CONFIG_UART_TX_BUF_SIZE 4096
+#define CONFIG_UART_TX_BUF_SIZE 2048
/* USB */
#define CONFIG_USB_CHARGER
diff --git a/board/rammus/board.h b/board/rammus/board.h
index 24f9069c60..f4f10da1b3 100644
--- a/board/rammus/board.h
+++ b/board/rammus/board.h
@@ -131,7 +131,7 @@
#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO_SIZE / 3)
#undef CONFIG_UART_TX_BUF_SIZE
-#define CONFIG_UART_TX_BUF_SIZE 2048
+#define CONFIG_UART_TX_BUF_SIZE 1024
#define CONFIG_TABLET_MODE
#define CONFIG_TABLET_MODE_SWITCH
diff --git a/board/reef/board.h b/board/reef/board.h
index 349944c26f..f37e315034 100644
--- a/board/reef/board.h
+++ b/board/reef/board.h
@@ -146,6 +146,8 @@
#define CONFIG_WLAN_POWER_ACTIVE_LOW
#define WIRELESS_GPIO_WLAN_POWER GPIO_WIRELESS_GPIO_WLAN_POWER
#define CONFIG_PWR_STATE_DISCHARGE_FULL
+#undef CONFIG_UART_TX_BUF_SIZE
+#define CONFIG_UART_TX_BUF_SIZE 512
/*
* During shutdown sequence TPS65094x PMIC turns off the sensor rails