summaryrefslogtreecommitdiff
path: root/board/kukui/board.h
diff options
context:
space:
mode:
authorYilun Lin <yllin@google.com>2018-07-17 17:37:42 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-07-18 06:18:12 -0700
commit1107089c5b7bb5282224c3c498d514ae31c5dc87 (patch)
treea1aff2ced3bec9f6d95a3e7b5745cacf2c063eb6 /board/kukui/board.h
parentfa41f632226147183fb7a45e13b4a21b3b6b3b94 (diff)
downloadchrome-ec-1107089c5b7bb5282224c3c498d514ae31c5dc87.tar.gz
kukui: Disable vsync, motion sensor in RO.
Kukui's RO flash size (stm32f098VC) is 124KB, and the current EC RO consumes 104616 bytes (102.1KB), besides, the compressed AP FW bootblock takes 25088 bytes (24.5KB). The total size of EC RO and AP FW Bootblock (126.6KB) already exceeds the size limit. Here, we disable vsync and motion sensor in EC RO, and this decrease the EC RO to 92736 byte (90.5KB), saving around 11 KB. TEST=make BOARD=kukui -j BUG=b:80159522 BRANCH=None Change-Id: I7846714c888d95b8dbfd22b475972ecc47c28606 Signed-off-by: Yilun Lin <yllin@google.com> Reviewed-on: https://chromium-review.googlesource.com/1141451 Commit-Ready: Yilun Lin <yllin@chromium.org> Tested-by: Yilun Lin <yllin@chromium.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/kukui/board.h')
-rw-r--r--board/kukui/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/kukui/board.h b/board/kukui/board.h
index 9f2c46fbe5..541eb234b4 100644
--- a/board/kukui/board.h
+++ b/board/kukui/board.h
@@ -88,6 +88,7 @@
#define CONFIG_UART_TX_BUF_SIZE 4096
/* Motion Sensors */
+#ifdef SECTION_IS_RW
#define CONFIG_ACCELGYRO_BMI160
#define CONFIG_ACCEL_INTERRUPTS
#define CONFIG_ACCELGYRO_BMI160_INT_EVENT TASK_EVENT_CUSTOM(4)
@@ -96,6 +97,7 @@
#define CONFIG_SYNC
#define CONFIG_SYNC_COMMAND
#define CONFIG_SYNC_INT_EVENT TASK_EVENT_CUSTOM(5)
+#endif /* SECTION_IS_RW */
/* To be able to indicate the device is in tablet mode. */
#define CONFIG_TABLET_MODE_SWITCH