summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-04-09 15:18:44 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-04-11 03:32:19 +0000
commitc9bc9f1d2b7b623b78ebd4babfd2cce7a5c0b79f (patch)
tree28697497165f4c8d18a01628ab9ff82687e66db4
parentbce51361c76aa480e5cc91f50afbdda14f61489d (diff)
downloadchrome-ec-c9bc9f1d2b7b623b78ebd4babfd2cce7a5c0b79f.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> (cherry picked from commit 3a9b89116fd0b3e358706f9c5822d4ee944978b6) Reviewed-on: https://chromium-review.googlesource.com/1006315 Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@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 f16b37cbb2..9d3293045f 100644
--- a/board/nautilus/board.h
+++ b/board/nautilus/board.h
@@ -120,11 +120,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