summaryrefslogtreecommitdiff
path: root/common/switch.c
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2017-02-04 11:58:16 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-02-13 18:25:51 -0800
commit1a736ed9542eb4c94ab0a49dba7696cda7faf864 (patch)
tree57d7a29b781f9afb33cd3da59983571096d74165 /common/switch.c
parentf51fdf223dd846341a489b00c8f43db92a37ce37 (diff)
downloadchrome-ec-1a736ed9542eb4c94ab0a49dba7696cda7faf864.tar.gz
kevin / gru: Reduce SRAM footprint
Remove console commands and add CONFIG options to reduce RAM usage. BUG=chrome-os-partner:54099 BRANCH=gru TEST=Verify charge_ramp CONFIG + task builds for gru. Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: I2d7bc77d1fc032c6cb75eb1ec8d13dacb676658d Reviewed-on: https://chromium-review.googlesource.com/437662 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'common/switch.c')
-rw-r--r--common/switch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/switch.c b/common/switch.c
index ab5c971ff7..1ca490a6b4 100644
--- a/common/switch.c
+++ b/common/switch.c
@@ -101,6 +101,7 @@ void switch_interrupt(enum gpio_signal signal)
hook_call_deferred(&switch_update_data, 0);
}
+#ifdef CONFIG_CMD_MMAPINFO
static int command_mmapinfo(int argc, char **argv)
{
uint8_t *memmap_switches = host_get_memmap(EC_MEMMAP_SWITCHES);
@@ -124,4 +125,4 @@ static int command_mmapinfo(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(mmapinfo, command_mmapinfo,
NULL,
"Print memmap switch state");
-
+#endif