summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-07 16:26:37 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-15 03:56:41 +0000
commited8ddb050d60cf634136f7c82f14b2c47dec2df1 (patch)
treea2e03cbfbe6c180ad1d742e5e81a7fae5c0fcc41
parent01f48bf5fca91586feaffc56d05b19922a8290dd (diff)
downloadchrome-ec-ed8ddb050d60cf634136f7c82f14b2c47dec2df1.tar.gz
volteer: Enable Intel Burnside Bridge
Enable the driver for this chip. Add a few missing GPIOs that it needs as well. BUG=b:175434113 TEST=make BOARD=volteer -j30 build volteer on zephyr Cq-Depend: chromium:2617041 Change-Id: I89795d3b395cb44df8975f67f2683e49e6db87ca Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2618537 Tested-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630175 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r--zephyr/projects/volteer/include/gpio_map.h8
-rw-r--r--zephyr/projects/volteer/prj.conf2
2 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/projects/volteer/include/gpio_map.h b/zephyr/projects/volteer/include/gpio_map.h
index 77ecfed9cf..fe9ff85bfd 100644
--- a/zephyr/projects/volteer/include/gpio_map.h
+++ b/zephyr/projects/volteer/include/gpio_map.h
@@ -60,6 +60,14 @@
#define GPIO_USB_C0_OC_ODL NAMED_GPIO(usb_c0_oc_odl)
#define GPIO_USB_C1_OC_ODL NAMED_GPIO(usb_c1_oc_odl)
+/* USB and USBC Signals */
+#define GPIO_EN_PP5000_USBA NAMED_GPIO(en_pp5000_usba)
+#define GPIO_USB_C1_RT_RST_ODL NAMED_GPIO(usb_c1_rt_rst_odl_boardid_0)
+
+/* Don't have a load switch for retimer */
+/* TODO(b/176559881): How to do unimplemented GPIOs? */
+#define GPIO_USB_C1_LS_EN NAMED_GPIO(unused_gpio41)
+
#define GPIO_USB_C1_BC12_INT_ODL GPIO_USB_C1_MIX_INT_ODL
/*
diff --git a/zephyr/projects/volteer/prj.conf b/zephyr/projects/volteer/prj.conf
index e1a2d07107..8237ed970d 100644
--- a/zephyr/projects/volteer/prj.conf
+++ b/zephyr/projects/volteer/prj.conf
@@ -37,6 +37,8 @@ CONFIG_PLATFORM_EC_BC12_DETECT_PI3USB9201=y
CONFIG_PLATFORM_EC_USB_PID=0x503e
CONFIG_PLATFORM_EC_USBC_PPC_SN5S330=y
CONFIG_PLATFORM_EC_USBC_PPC_SYV682X=y
+CONFIG_PLATFORM_EC_USBC_RETIMER_INTEL_BB=y
+CONFIG_PLATFORM_EC_USB_MUX_VIRTUAL=y
CONFIG_PLATFORM_EC_USB_PD_VBUS_MEASURE_NOT_PRESENT=y
CONFIG_PLATFORM_EC_USB_PD_DISCHARGE_PPC=y
CONFIG_PLATFORM_EC_CONFIG_USB_PD_REV30=y