diff options
author | Ting Shen <phoenixshen@google.com> | 2022-04-07 18:20:22 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-04-14 11:16:05 +0000 |
commit | 5fff42cef206613886f8cb1bfe8ded23e63b73fd (patch) | |
tree | 7691e851bd5befde3c119b7e0601855c0be851b5 | |
parent | 4918a48edcd006020e39c398dd1e61c6970d8390 (diff) | |
download | chrome-ec-5fff42cef206613886f8cb1bfe8ded23e63b73fd.tar.gz |
rt1739: add es2 workaround
Add a workaround to fix the incorrect CCD_MODE_ODL behavior on
RT1739 ES2.
BUG=b:228403166
TEST=manually
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I0a2702e9cb5bcb9146246b0bf3fd0ab3f9631b25
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3575706
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r-- | driver/ppc/rt1739.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/driver/ppc/rt1739.c b/driver/ppc/rt1739.c index b407924432..a99ec91b5c 100644 --- a/driver/ppc/rt1739.c +++ b/driver/ppc/rt1739.c @@ -183,6 +183,14 @@ static int rt1739_workaround(int port) case RT1739_DEVICE_ID_ES2: CPRINTS("RT1739 ES2"); + /* enter hidden mode */ + RETURN_ERROR(write_reg(port, 0xF1, 0x62)); + RETURN_ERROR(write_reg(port, 0xF0, 0x86)); + /* turn off SWENB output */ + RETURN_ERROR(write_reg(port, 0xE0, 0x07)); + /* leave hidden mode */ + RETURN_ERROR(write_reg(port, 0xF1, 0)); + RETURN_ERROR(write_reg(port, 0xF0, 0)); break; default: |