diff options
author | Yilun Lin <yllin@google.com> | 2018-07-17 17:37:42 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-07-18 06:18:12 -0700 |
commit | 1107089c5b7bb5282224c3c498d514ae31c5dc87 (patch) | |
tree | a1aff2ced3bec9f6d95a3e7b5745cacf2c063eb6 /board/kukui/gpio.inc | |
parent | fa41f632226147183fb7a45e13b4a21b3b6b3b94 (diff) | |
download | chrome-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/gpio.inc')
-rw-r--r-- | board/kukui/gpio.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/kukui/gpio.inc b/board/kukui/gpio.inc index b4cd26bdc7..9733a8c2b5 100644 --- a/board/kukui/gpio.inc +++ b/board/kukui/gpio.inc @@ -31,10 +31,12 @@ GPIO_INT(WARM_RESET_REQ, PIN(A, 3), GPIO_INT_RISING | GPIO_PULL_DOWN, GPIO_INT(AP_EC_WATCHDOG_L, PIN(C, 2), GPIO_INT_FALLING, ap_watchdog_interrupt) +#ifdef SECTION_IS_RW GPIO_INT(ACCEL_INT_ODL, PIN(A, 4), GPIO_INT_FALLING | GPIO_SEL_1P8V | GPIO_PULL_UP, bmi160_interrupt) GPIO_INT(SYNC_INT, PIN(A, 5), GPIO_INT_RISING | GPIO_PULL_DOWN, sync_interrupt) +#endif GPIO_INT(CHARGER_INT_ODL, PIN(C, 13), GPIO_INPUT | GPIO_PULL_UP, rt946x_interrupt) #ifdef SECTION_IS_RO |