diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2013-03-28 00:45:44 -0700 |
---|---|---|
committer | Peter Mayo <petermayo@chromium.org> | 2013-03-28 09:53:30 -0700 |
commit | 4077d572efc589f9077ef8cfe54be79ec3aa922a (patch) | |
tree | 52383d684eb4c480f0003ca76c17d24f57367cd7 | |
parent | e2b11fab46595cd43b027bc847aaa315677381b0 (diff) | |
download | chrome-ec-4077d572efc589f9077ef8cfe54be79ec3aa922a.tar.gz |
tsu6721: accept new revision of the chip
We have new TSU6721 silicon with Version ID = 2,
so we need to accept 0x12 as Device ID.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=spring
BUG=none
TEST=run on a board with the new silicon version and see that the
charger is properly detected.
Change-Id: I12ea80b21a0d3abc5ce45856e9c9f9cdf8fd7e3e
Previous-Reviewed-on: https://gerrit.chromium.org/gerrit/46752
(cherry picked from commit 5838bd56096903eb3dec420fb0c3399fea52a870)
Reviewed-on: https://gerrit.chromium.org/gerrit/46764
Reviewed-by: Vic Yang <victoryang@chromium.org>
Tested-by: Peter Mayo <petermayo@chromium.org>
-rw-r--r-- | common/tsu6721.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/tsu6721.c b/common/tsu6721.c index 7f3d1d0c7e..b69a89e4a7 100644 --- a/common/tsu6721.c +++ b/common/tsu6721.c @@ -118,7 +118,7 @@ void tsu6721_init(void) uint8_t settings; uint8_t dev_id = tsu6721_read(TSU6721_REG_DEV_ID); - if (dev_id != 0x0a) { + if ((dev_id != 0x0a) && (dev_id != 0x12)) { CPRINTF("TSU6721 invalid device ID 0x%02x\n", dev_id); return; } |