summaryrefslogtreecommitdiff
path: root/board/firefly/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/firefly/board.h')
-rw-r--r--board/firefly/board.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/firefly/board.h b/board/firefly/board.h
index 43b324c0d3..1ca109662f 100644
--- a/board/firefly/board.h
+++ b/board/firefly/board.h
@@ -19,6 +19,7 @@
#define CONFIG_USB_POWER_DELIVERY
#define CONFIG_USB_PD_DUAL_ROLE
#define CONFIG_USB_PD_INTERNAL_COMP
+#define CONFIG_USB_PD_PORT_COUNT 1
#define CONFIG_USB_PD_TCPC
#define CONFIG_USB_PD_TCPM_STUB
#define CONFIG_ADC
@@ -55,6 +56,19 @@ enum adc_channel {
ADC_CH_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 20000
+
#endif /* !__ASSEMBLER__ */
#endif /* __BOARD_H */