summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Marheine <pmarheine@chromium.org>2022-03-04 17:14:02 +1100
committerCommit Bot <commit-bot@chromium.org>2022-03-09 00:09:55 +0000
commit02c5590bbb5cfc18a87b78f1b329264c48a8a704 (patch)
tree449865570ff130f9ad12453bea65ef81ffb2a945
parentcb6f7f153352d83d52ee0c5c35ab11845b072512 (diff)
downloadchrome-ec-02c5590bbb5cfc18a87b78f1b329264c48a8a704.tar.gz
nissa: shrink shell TX ring buffer
The EC default of 1k seems unnecessarily huge, especially compared to the Zephyr default of 8 bytes. Shrinking it to 128 bytes doesn't have any apparent ill effect, and reclaims a lot of RAM. BUG=b:223044986 TEST=flash nereid, console output looks normal and RAM usage is reduced by 896 bytes. BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: Id4a1f1c85d8420e40f836a5b42eec179f0315247 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3499692 Reviewed-by: Andrew McRae <amcrae@google.com>
-rw-r--r--zephyr/projects/nissa/prj.conf5
1 files changed, 4 insertions, 1 deletions
diff --git a/zephyr/projects/nissa/prj.conf b/zephyr/projects/nissa/prj.conf
index c7ffa1bcf9..a5a14d79a8 100644
--- a/zephyr/projects/nissa/prj.conf
+++ b/zephyr/projects/nissa/prj.conf
@@ -18,8 +18,11 @@ CONFIG_PLATFORM_EC_BRINGUP=y
CONFIG_SHELL_MINIMAL=n
CONFIG_LOG=y
-# Unnecessary features, disabled to save memory
+# RAM-saving options
+# flash shell command is unused, allocated a 4kB buffer for flash test
CONFIG_FLASH_SHELL=n
+# EC default 1kB buffer seems unnecessarily large, Zephyr default is 8 bytes
+CONFIG_SHELL_BACKEND_SERIAL_TX_RING_BUFFER_SIZE=128
# Standard shimmed features
CONFIG_PLATFORM_EC_BACKLIGHT_LID=y