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-07-06 10:36:56 +0000 |
commit | 8fef3a681df3eda24a4840eeefb7d29a3069daaf (patch) | |
tree | 8db6a7c1b7221ef081c5c3040be7f41441d39cf3 | |
parent | 292a7656058627fa0885a93de55cf496d78ccb8c (diff) | |
download | chrome-ec-8fef3a681df3eda24a4840eeefb7d29a3069daaf.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>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3723360
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com>
Auto-Submit: Tommy Chung <tommy.chung@quanta.corp-partner.google.com>
-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 c7b8f23b5f..63028e42f0 100644 --- a/driver/tcpm/rt1718s.c +++ b/driver/tcpm/rt1718s.c @@ -606,7 +606,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), |