From 8acea1ec3970fe5b829d2b06ba32529c9d5ccb6a Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Fri, 16 Oct 2015 11:07:01 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/306783 Reviewed-by: Vincent Palatin --- common/host_command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/host_command.c') 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 -- cgit v1.2.1