summaryrefslogtreecommitdiff
path: root/include/config.h
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 /include/config.h
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 'include/config.h')
-rw-r--r--include/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 1e017fe028..74d7ebf264 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1043,6 +1043,9 @@
#undef CONFIG_I2C_PASSTHROUGH
#undef CONFIG_I2C_PASSTHRU_RESTRICTED
+/* For EC that is only an I2C slave */
+#undef CONFIG_I2C_SLAVE_ONLY
+
/* Defines I2C operation retry count when slave nack'd(EC_ERROR_BUSY) */
#define CONFIG_I2C_NACK_RETRY_COUNT 0
/*