summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2013-03-28 00:45:44 -0700
committerChromeBot <chrome-bot@google.com>2013-03-28 11:18:09 -0700
commite2dd54288dce223fe86cad5c43224aa1861baedb (patch)
tree66e39be6985f4e645bb998ed89c42b4e81300e6a
parentc2b94fd184e6f5df5e5d8fe4018055a29a96a064 (diff)
downloadchrome-ec-e2dd54288dce223fe86cad5c43224aa1861baedb.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. Original-Change-Id: I12ea80b21a0d3abc5ce45856e9c9f9cdf8fd7e3e Reviewed-on: https://gerrit.chromium.org/gerrit/46752 Reviewed-by: Vic Yang <victoryang@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> (cherry picked from commit 5838bd56096903eb3dec420fb0c3399fea52a870) Change-Id: Id24e436e5900b6f4047a783cb4f50ca1a4344f29 Reviewed-on: https://gerrit.chromium.org/gerrit/46755 Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Vic Yang <victoryang@chromium.org>
-rw-r--r--common/tsu6721.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/tsu6721.c b/common/tsu6721.c
index 629e8e3e86..999d4587a8 100644
--- a/common/tsu6721.c
+++ b/common/tsu6721.c
@@ -129,7 +129,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;
}