summaryrefslogtreecommitdiff
path: root/common/host_command.c
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-10-16 11:07:01 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-19 15:15:36 -0700
commit8acea1ec3970fe5b829d2b06ba32529c9d5ccb6a (patch)
tree254b318ca27140f61af8de39f35e2cd86af1dd5e /common/host_command.c
parent4c8553dfb13d8046a32b833321826aade31a0264 (diff)
downloadchrome-ec-8acea1ec3970fe5b829d2b06ba32529c9d5ccb6a.tar.gz
glados_pd: oak_pd: add and enable option for i2c slave only
Add CONFIG_I2C_SLAVE_ONLY for boards that only operate as a slave on i2c. BUG=chrome-os-partner:41959 BRANCH=none TEST=make BOARD=glados_pd and see 2kB flash savings Change-Id: I30831ce48b391d985c25e266229d5c6f2312042b Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/306783 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/host_command.c')
-rw-r--r--common/host_command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/host_command.c b/common/host_command.c
index 387f0d03a2..b57d41c17b 100644
--- a/common/host_command.c
+++ b/common/host_command.c
@@ -720,7 +720,7 @@ static int host_command_get_features(struct host_cmd_handler_args *args)
#ifdef CONFIG_COMMON_GPIO
| EC_FEATURE_MASK_0(EC_FEATURE_GPIO)
#endif
-#ifdef CONFIG_I2C
+#if defined(CONFIG_I2C) && !defined(CONFIG_I2C_SLAVE_ONLY)
| EC_FEATURE_MASK_0(EC_FEATURE_I2C)
#endif
#ifdef CONFIG_CHARGER