summaryrefslogtreecommitdiff
path: root/board/dalboz
diff options
context:
space:
mode:
authorLu Zhang <lu.zhang@bitland.corp-partner.google.com>2020-06-10 16:03:23 +0800
committerCommit Bot <commit-bot@chromium.org>2020-06-11 09:57:16 +0000
commitf8f4a60129ca984b6c1e95ba57f68c74d82ba045 (patch)
treee00e245c2c1f9895d238eda41f4900d7672079c3 /board/dalboz
parent2dd31c0c7e4f23233830ceb09724896cfe50541c (diff)
downloadchrome-ec-f8f4a60129ca984b6c1e95ba57f68c74d82ba045.tar.gz
vilboz: Remove ioex C1 and config the ioexpander gpio
BUG=b:158125500 BRANCH=none TEST=make buildall -j Signed-off-by: Lu Zhang <lu.zhang@bitland.corp-partner.google.com> Change-Id: Ica8cdd8f0b14f612f17018a3a95df5a23a6ad43f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2239593 Reviewed-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Diffstat (limited to 'board/dalboz')
-rw-r--r--board/dalboz/board.c16
-rw-r--r--board/dalboz/board.h6
2 files changed, 22 insertions, 0 deletions
diff --git a/board/dalboz/board.c b/board/dalboz/board.c
index 7bb4c20a5f..3f82897b3b 100644
--- a/board/dalboz/board.c
+++ b/board/dalboz/board.c
@@ -479,6 +479,22 @@ void bc12_interrupt(enum gpio_signal signal)
}
}
+int board_tcpc_fast_role_swap_enable(int port, int enable)
+{
+ int rv = EC_SUCCESS;
+
+ /* Use the TCPC to enable fast switch when FRS included */
+ if (port == USBC_PORT_C0) {
+ rv = ioex_set_level(IOEX_USB_C0_TCPC_FASTSW_CTL_EN,
+ !!enable);
+ } else {
+ rv = ioex_set_level(IOEX_USB_C1_TCPC_FASTSW_CTL_EN,
+ !!enable);
+ }
+
+ return rv;
+}
+
static void setup_fw_config(void)
{
uint32_t board_version = 0;
diff --git a/board/dalboz/board.h b/board/dalboz/board.h
index 389aeb3587..99f92da64e 100644
--- a/board/dalboz/board.h
+++ b/board/dalboz/board.h
@@ -26,8 +26,14 @@
#define CONFIG_USBC_PPC_NX20P3483
#define CONFIG_USB_MUX_PS8740
#define CONFIG_USB_MUX_PS8743
+#define CONFIG_USB_MUX_RUNTIME_CONFIG
#define CONFIG_USB_PD_PORT_MAX_COUNT 2
+#define CONFIG_USB_PORT_ENABLE_DYNAMIC
+
+/* USB-A config */
+#define GPIO_USB1_ILIM_SEL IOEX_USB_A0_CHARGE_EN_L
+#define GPIO_USB2_ILIM_SEL IOEX_USB_A1_CHARGE_EN_DB_L
/* Power LEDs */
#define CONFIG_LED_POWER_LED