diff options
author | Vic Yang <victoryang@chromium.org> | 2013-04-28 14:21:31 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-04-29 03:47:48 -0700 |
commit | 0bc9888c83bd2bc9c1650b4d824aff67e912d598 (patch) | |
tree | 854227577444f0dd3937c101b09a30f574cd4c15 | |
parent | f5a154b1619062f42edfbaa814bd9d6695408bb5 (diff) | |
download | chrome-ec-0bc9888c83bd2bc9c1650b4d824aff67e912d598.tar.gz |
Fill in I2C test parameters
This fills in test parameters for link, pit, snow, and daisy. Also fixes
compilation error due to CONFIG_ADC not defined.
BUG=chrome-os-partner:18598
TEST=Build test-stress. (Link failed due to unrelated issue.)
BRANCH=None
Change-Id: I8a5cfcf4acdae607c23dbe5cf3378945f91c7807
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/49449
-rw-r--r-- | test/stress.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/test/stress.c b/test/stress.c index 5cff054347..ecd975f712 100644 --- a/test/stress.c +++ b/test/stress.c @@ -5,7 +5,6 @@ /* Peripheral stress tests */ -#include "adc.h" #include "board.h" #include "console.h" #include "ec_commands.h" @@ -13,6 +12,10 @@ #include "timer.h" #include "util.h" +#ifdef CONFIG_ADC +#include "adc.h" +#endif + static int error_count; /*****************************************************************************/ @@ -32,9 +35,22 @@ struct i2c_test_param_t { {8, 0, 0x60, 0x0, -1}, {8, 0, 0x60, 0x0, 0x40}, {8, 0, 0x4a, 0x1, -1}, +#elif defined(BOARD_daisy) + {8, 1, 0x90, 0x19, -1}, +#elif defined(BOARD_link) + {8, 0, 0x16, 0x8, -1}, + {8, 0, 0x16, 0x9, -1}, + {8, 0, 0x16, 0xa, -1}, +#elif defined(BOARD_pit) + {8, 0, 0x90, 0x19, -1}, +#elif defined(BOARD_snow) + {8, 1, 0x90, 0x19, -1}, #endif - /* TODO(victoryang): Add parameters for other boards */ }; +/* Disable I2C test for boards without test configuration */ +#if defined(BOARD_bds) || defined(BOARD_mccroskey) || defined(BOARD_slippy) +#undef CONFIG_I2C +#endif /* ADC test */ #define ADC_TEST_ITERATION 2000 |