summaryrefslogtreecommitdiff
path: root/board/kukui/board.h
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2019-09-05 01:20:19 +0800
committerCommit Bot <commit-bot@chromium.org>2019-09-05 11:09:00 +0000
commit5094437e865bb00c672288b5420b3a257c14d236 (patch)
tree45684833fab426f5436d599bbd23d81833cb20e8 /board/kukui/board.h
parent7c16f9c666f20daf9c360678f92fcc7145665315 (diff)
downloadchrome-ec-5094437e865bb00c672288b5420b3a257c14d236.tar.gz
krane: add it5205 driver
An it5205 is added in kukui/krane rev 5, and deprecated gpio pin USB_C0_DP_OE_L and USB_C0_DP_POLARITY. This CL is intended to make the fw works for both old and new boards: 1) the default usb_mux driver is updated to rev 5, and board_rev_init may change it back for old boards. 2) keep VARIANT_KUKUI_DP_MUX_GPIO in kukui/board.h, and add a customized function to set/clear these gpio pins. BUG=b:135079572 TEST=verify that type c display works on board rev 4/5 BRANCH=master Change-Id: Ibe28816eed026ccb8a9a5234a612f80b038884f1 Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1785197 Reviewed-by: Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/kukui/board.h')
-rw-r--r--board/kukui/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/kukui/board.h b/board/kukui/board.h
index 4fd1a76a50..c7d2da1ed9 100644
--- a/board/kukui/board.h
+++ b/board/kukui/board.h
@@ -23,6 +23,7 @@
#include "baseboard.h"
+#define CONFIG_USB_MUX_IT5205
#define CONFIG_VOLUME_BUTTONS
/* Battery */
@@ -74,6 +75,7 @@
/* I2C ports */
#define I2C_PORT_CHARGER 0
#define I2C_PORT_TCPC0 0
+#define I2C_PORT_USB_MUX 0
#define I2C_PORT_BATTERY 1
#define I2C_PORT_VIRTUAL_BATTERY I2C_PORT_BATTERY
#define I2C_PORT_ACCEL 1