mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
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>
This commit is contained in:
committed by
ChromeBot
parent
c2b94fd184
commit
e2dd54288d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user