diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-10-16 11:07:01 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-10-19 15:15:36 -0700 |
commit | 8acea1ec3970fe5b829d2b06ba32529c9d5ccb6a (patch) | |
tree | 254b318ca27140f61af8de39f35e2cd86af1dd5e /test/stress.c | |
parent | 4c8553dfb13d8046a32b833321826aade31a0264 (diff) | |
download | chrome-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 'test/stress.c')
-rw-r--r-- | test/stress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/stress.c b/test/stress.c index 5e31d4e466..72c5b75ced 100644 --- a/test/stress.c +++ b/test/stress.c @@ -78,7 +78,7 @@ static int stress(const char *name, /*****************************************************************************/ /* Tests */ -#ifdef CONFIG_I2C +#if defined(CONFIG_I2C) && !defined(CONFIG_I2C_SLAVE_ONLY) static int test_i2c(void) { int res = EC_ERROR_UNKNOWN; @@ -135,7 +135,7 @@ void run_test(void) { test_reset(); -#ifdef CONFIG_I2C +#if defined(CONFIG_I2C) && !defined(CONFIG_I2C_SLAVE_ONLY) RUN_STRESS_TEST("I2C Stress Test", test_i2c, I2C_TEST_ITERATION); #endif #ifdef CONFIG_ADC |