summaryrefslogtreecommitdiff
path: root/board/dingdong/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/dingdong/board.h')
-rw-r--r--board/dingdong/board.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/dingdong/board.h b/board/dingdong/board.h
index 77b557b4b1..85f4374e68 100644
--- a/board/dingdong/board.h
+++ b/board/dingdong/board.h
@@ -38,6 +38,7 @@
#define CONFIG_USB_PD_NO_VBUS_DETECT
#define CONFIG_USB_PD_LOGGING
#define CONFIG_USB_PD_LOG_SIZE 256
+#define CONFIG_USB_PD_PORT_COUNT 1
#define CONFIG_USB_PD_TCPC
#define CONFIG_USB_PD_TCPM_STUB
#undef CONFIG_WATCHDOG_HELP
@@ -77,6 +78,19 @@ enum usb_strings {
USB_STR_COUNT
};
+/* we are acting only as a sink */
+#define PD_DEFAULT_STATE PD_STATE_SNK_DISCONNECTED
+
+/* we are never a source : don't care about power supply */
+#define PD_POWER_SUPPLY_TURN_ON_DELAY 0 /* us */
+#define PD_POWER_SUPPLY_TURN_OFF_DELAY 0 /* us */
+
+/* Define typical operating power and max power */
+#define PD_OPERATING_POWER_MW 1000
+#define PD_MAX_POWER_MW 1500
+#define PD_MAX_CURRENT_MA 300
+#define PD_MAX_VOLTAGE_MV 5000
+
#endif /* !__ASSEMBLER__ */
/* USB Device class */