diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2022-03-07 17:04:12 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-24 08:55:17 +0000 |
commit | 932a1fb74775e75bbd122d75c24e34f975e72f70 (patch) | |
tree | 56b387bdf3f4d272f4485a33255aee9e2d071470 /driver | |
parent | 38cc7dbe2af6d2e28e4cad02807d84dcb0b6646a (diff) | |
download | chrome-ec-932a1fb74775e75bbd122d75c24e34f975e72f70.tar.gz |
rt1718s: fix rt1718s_gpio index
The index is counted starting by 1 in the datasheet.
BUG=b:223086905
TEST=ec:~$ rt1718s_gpio
C1 GPIO1 OD=0 PU=0 PD=0 OE=1 HL=0
C1 GPIO2 OD=0 PU=0 PD=0 OE=1 HL=0
C1 GPIO3 OD=0 PU=0 PD=0 OE=1 HL=0
BRANCH=none
Change-Id: Ib7f7e9114c03fe39cc828c7942743a75351cf98d
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3506874
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Tested-by: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/tcpm/rt1718s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/tcpm/rt1718s.c b/driver/tcpm/rt1718s.c index f68a1e4c27..c286eaeae2 100644 --- a/driver/tcpm/rt1718s.c +++ b/driver/tcpm/rt1718s.c @@ -563,7 +563,7 @@ static int command_rt1718s_gpio(int argc, char **argv) return EC_ERROR_UNKNOWN; ccprintf("C%d GPIO%d OD=%d PU=%d PD=%d OE=%d HL=%d\n", - i, j, !(flags & RT1718S_GPIO_CTRL_OD_N), + i, j+1, !(flags & RT1718S_GPIO_CTRL_OD_N), !!(flags & RT1718S_GPIO_CTRL_PU), !!(flags & RT1718S_GPIO_CTRL_PD), !!(flags & RT1718S_GPIO_CTRL_OE), |