diff options
author | Ruibin Chang <ruibin.chang@ite.com.tw> | 2020-01-20 17:59:40 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-22 07:34:51 +0000 |
commit | adf6054e8eef567a6beb1d6894133446966c9e0a (patch) | |
tree | f56dcd3ef08dc2250f3d54c21b43370f6ddcb779 /driver/tcpm/it83xx.c | |
parent | 29e08659341945d5bda1ea323f64fab89d59197a (diff) | |
download | chrome-ec-adf6054e8eef567a6beb1d6894133446966c9e0a.tar.gz |
Cleanup: Add chip support pd physical port count configuration
Add chip support pd physical port count configuration.
BUG=none
BRANCH=none
TEST=build all -j
Change-Id: Ic473e53af44b5360aad6d2db74cf09ce5a3fa3e8
Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2009537
Tested-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Diffstat (limited to 'driver/tcpm/it83xx.c')
-rw-r--r-- | driver/tcpm/it83xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/tcpm/it83xx.c b/driver/tcpm/it83xx.c index dd18bc2f70..3cad1ef4a7 100644 --- a/driver/tcpm/it83xx.c +++ b/driver/tcpm/it83xx.c @@ -35,7 +35,7 @@ const struct usbpd_ctrl_t usbpd_ctrl_regs[] = { {&IT83XX_GPIO_GPCRF4, &IT83XX_GPIO_GPCRF5, IT83XX_IRQ_USBPD0}, {&IT83XX_GPIO_GPCRH1, &IT83XX_GPIO_GPCRH2, IT83XX_IRQ_USBPD1}, }; -BUILD_ASSERT(ARRAY_SIZE(usbpd_ctrl_regs) == USBPD_PORT_COUNT); +BUILD_ASSERT(ARRAY_SIZE(usbpd_ctrl_regs) == IT83XX_USBPD_PHY_PORT_COUNT); /* * This function disables integrated pd module and enables 5.1K resistor for |