diff options
author | Vic Yang <victoryang@chromium.org> | 2014-10-14 15:27:16 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-10-18 07:38:30 +0000 |
commit | ccc270368bb9193c5b368b1b82d5a8fecc5c4bc4 (patch) | |
tree | 4167a07afeb6597c828d1f157834d0a83cb6b364 /include/config.h | |
parent | 316f369f1cc859880485cab7dd760fa19b48e70d (diff) | |
download | chrome-ec-ccc270368bb9193c5b368b1b82d5a8fecc5c4bc4.tar.gz |
Extend INA231 driver to support INA219 on Plankton
The register format of INA231 and INA219 are very much alike. In our
use case, we only need to use different coversion coefficient.
BRANCH=None
BUG=chrome-os-partner:32764
TEST='ina 0' on Plankton V2.
TEST=Build twinkie.
Change-Id: I9c8e21e30ed844566793dcc1221f865400c3d90d
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/223370
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 4522e69b5e..59256c816a 100644 --- a/include/config.h +++ b/include/config.h @@ -612,6 +612,16 @@ #undef CONFIG_I2C_SCL_GATE_GPIO /*****************************************************************************/ +/* Current/Power monitor */ + +/* + * Compile driver for INA219 or INA231. These two flags may not be both + * defined. + */ +#undef CONFIG_INA219 +#undef CONFIG_INA231 + +/*****************************************************************************/ /* Inductive charging */ /* Enable inductive charging support */ |