summaryrefslogtreecommitdiff
path: root/board/brask/board.h
diff options
context:
space:
mode:
authorZhuohao Lee <zhuohao@chromium.org>2021-08-24 20:45:28 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-25 08:36:52 +0000
commit5837e32e2dfbbbe50e5ba51eb6464b0c2b6f4103 (patch)
tree7cd3ada307c0a4d5b6c1910567feb2f7222b8bd8 /board/brask/board.h
parent5edd11b4edbc37979efb9c7cc73af9b7e4fc4a01 (diff)
downloadchrome-ec-5837e32e2dfbbbe50e5ba51eb6464b0c2b6f4103.tar.gz
brask: modify the usbc setting
There are 3 usb typec ports in the brask. The configuration listed below: Port 0: TCPC NCT3808-1, TCPPC SYV682B, Burnside Bridge retimer. Port 1: TCPC RT1716, TCPPC SYV682B, Kandou KB8002. Port 2: TCPC NCT3808-2, TCPPC SYV682B, Burnside Bridge retimer. In order to support the above configuration, this patch modifies: 1. use syv682v instead of using nv20p3483. 2. use rt1716 instead of using ps8815. 3. use kb800x retimer. 4. remove the fw_config because we don't need it to switch the different DBs. BUG=b:191637086 BRANCH=None TEST=make BOARD=brask Change-Id: Ie09aef9dc7cc7a532b34d86ea022127099f7735e Signed-off-by: Zhuohao Lee <zhuohao@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3115807 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'board/brask/board.h')
-rw-r--r--board/brask/board.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/board/brask/board.h b/board/brask/board.h
index dbd94d2be7..e27292c08f 100644
--- a/board/brask/board.h
+++ b/board/brask/board.h
@@ -27,23 +27,28 @@
#define CONFIG_IO_EXPANDER
#define CONFIG_IO_EXPANDER_NCT38XX
-#define CONFIG_IO_EXPANDER_PORT_COUNT 4
+#define CONFIG_IO_EXPANDER_PORT_COUNT 2
-#define CONFIG_USB_PD_TCPM_PS8815
+#define CONFIG_USB_PD_PPC
+#define CONFIG_USB_PD_TCPM_RT1715
#define CONFIG_USBC_RETIMER_INTEL_BB
-
+/* TODO(b/197505149): need to fix the build error and clarify
+ * how to set the usb_ls_en_gpio and retimer_rst_gpio
+ * in the same array.
+ */
+/* #define CONFIG_USBC_RETIMER_KB800X */
#define CONFIG_USBC_PPC_SYV682X
-#define CONFIG_USBC_PPC_NX20P3483
/* TODO: b/177608416 - measure and check these values on brya */
#define PD_POWER_SUPPLY_TURN_ON_DELAY 30000 /* us */
#define PD_POWER_SUPPLY_TURN_OFF_DELAY 30000 /* us */
#define PD_VCONN_SWAP_DELAY 5000 /* us */
-/*
- * Passive USB-C cables only support up to 60W.
+/* The design should support up to 100W. */
+/* TODO(b/197702356): Set the max PD to 60W now and change it
+ * to 100W after we verify it.
*/
-#define PD_OPERATING_POWER_MW 15000
+#define PD_OPERATING_POWER_MW CONFIG_CHARGER_MIN_POWER_MW_FOR_POWER_ON
#define PD_MAX_POWER_MW 60000
#define PD_MAX_CURRENT_MA 3000
#define PD_MAX_VOLTAGE_MV 20000
@@ -160,8 +165,6 @@ enum temp_sensor_id {
enum ioex_port {
IOEX_C0_NCT38XX = 0,
IOEX_C2_NCT38XX,
- IOEX_ID_1_C0_NCT38XX,
- IOEX_ID_1_C2_NCT38XX,
IOEX_PORT_COUNT
};