summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2019-04-30 16:29:52 -0700
committerCommit Bot <commit-bot@chromium.org>2019-06-03 23:06:56 +0000
commit6d79da6480fd4cd139cbe104b14384345e84aba8 (patch)
tree22c95aea79da4209de1af42a074d96328f30b6d2
parentfff9a1b2be9f19b800cc521093f966ddf977463e (diff)
downloadchrome-ec-6d79da6480fd4cd139cbe104b14384345e84aba8.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> (cherry picked from commit a6bfa5e7a8c013ffb9b48d437d5758f46c38ebb8) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1642351
-rw-r--r--board/servo_v4/board.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/servo_v4/board.h b/board/servo_v4/board.h
index e131384e8f..0f8de58243 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
@@ -75,6 +76,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