diff options
author | Wai-Hong Tam <waihong@google.com> | 2019-04-30 16:29:52 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-20 21:14:53 -0700 |
commit | a6bfa5e7a8c013ffb9b48d437d5758f46c38ebb8 (patch) | |
tree | ae900e72d22191daeec2c5c7f26edd12556dcf28 /board | |
parent | f1a16a6688f52e3de9809402564b26af67f265a6 (diff) | |
download | chrome-ec-a6bfa5e7a8c013ffb9b48d437d5758f46c38ebb8.tar.gz |
servo_v4: Disable unused features to reduce space
The servo_v4 is almost out-of-space. Disable some unused features
and console commands to reclaim some space.
Before:
176 bytes in flash and 4392 bytes in RAM available on RO
After:
1264 bytes in flash and 4400 bytes in RAM available on RO
BUG=b:131840808
BRANCH=servo
TEST=Built and flashed the servo v4 firmware. Started servod and
verified some functions.
Change-Id: Ic0e76794d0603fccc2f733cad388f54650d2cd45
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1597959
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/servo_v4/board.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/servo_v4/board.h b/board/servo_v4/board.h index 92f83c267a..1c4e4f9dad 100644 --- a/board/servo_v4/board.h +++ b/board/servo_v4/board.h @@ -67,6 +67,7 @@ /* This is not actually an EC so disable some features. */ #undef CONFIG_WATCHDOG_HELP #undef CONFIG_LID_SWITCH +#undef CONFIG_HIBERNATE /* Remove console commands / features for flash / RAM savings */ #undef CONFIG_CONSOLE_CMDHELP @@ -76,6 +77,8 @@ #undef CONFIG_CMD_FASTCHARGE #undef CONFIG_CMD_GETTIME #undef CONFIG_CMD_MEM +#undef CONFIG_CMD_SHMEM +#undef CONFIG_CMD_WAITMS /* Enable control of I2C over USB */ #define CONFIG_USB_I2C |