summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-04-09 15:18:44 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-04-10 19:13:28 -0700
commit3a9b89116fd0b3e358706f9c5822d4ee944978b6 (patch)
treea66427ffa0ded073d1451b79e48e8fda37c3da8a
parent995f23b86698a120d8183cc6aba1d676ded1f0b0 (diff)
downloadchrome-ec-3a9b89116fd0b3e358706f9c5822d4ee944978b6.tar.gz
nautilus: Shrink accelerometer FIFO to 512 entries
It appears that the shared memory buffer on Nautilus starts at 200c7720 D __shared_mem_buf That's 29.78 kb into the RAM. Software sync needs 1kb, so we should be fine, expect that the last 2kb of RAM are supposed to be reserved for the "booter" (NPCX_BTRAM_SIZE). We shrink the accelerometer FIFO to 512 entries, freeing up 4kb of RAM, and increase the UART TX buffer to 4kb, to make use of 3kb of that freed up space: 200c7320 D __shared_mem_buf That's 28.78 kb into the RAM. BRANCH=poppy BUG=chromium:739771 TEST=make BOARD=nautilus -j, check that shared_mem_buf offset is < 29 kb. Change-Id: I361a439b847d31d3415f2ee66229bd32f8816e2d Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1002712 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Philip Chen <philipchen@chromium.org> Reviewed-by: Gwendal Grignou <gwendal@google.com> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--board/nautilus/board.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/nautilus/board.h b/board/nautilus/board.h
index dace2d8480..d516cde646 100644
--- a/board/nautilus/board.h
+++ b/board/nautilus/board.h
@@ -126,11 +126,14 @@
#define CONFIG_LID_ANGLE_INVALID_CHECK
/* FIFO size is in power of 2. */
-#define CONFIG_ACCEL_FIFO 1024
+#define CONFIG_ACCEL_FIFO 512
/* Depends on how fast the AP boots and typical ODRs */
#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO / 3)
+#undef CONFIG_UART_TX_BUF_SIZE
+#define CONFIG_UART_TX_BUF_SIZE 4096
+
#define CONFIG_TABLET_MODE
#define CONFIG_TABLET_MODE_SWITCH