From e2dd54288dce223fe86cad5c43224aa1861baedb Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Thu, 28 Mar 2013 00:45:44 -0700 Subject: [PATCH] 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 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 Commit-Queue: Vincent Palatin Tested-by: Vincent Palatin (cherry picked from commit 5838bd56096903eb3dec420fb0c3399fea52a870) Change-Id: Id24e436e5900b6f4047a783cb4f50ca1a4344f29 Reviewed-on: https://gerrit.chromium.org/gerrit/46755 Commit-Queue: Vincent Palatin Tested-by: Vincent Palatin Reviewed-by: Vic Yang --- common/tsu6721.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }