summaryrefslogtreecommitdiff
path: root/board/samus_pd/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/samus_pd/board.h')
-rw-r--r--board/samus_pd/board.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/samus_pd/board.h b/board/samus_pd/board.h
index a292bc5981..87cef022b9 100644
--- a/board/samus_pd/board.h
+++ b/board/samus_pd/board.h
@@ -23,6 +23,7 @@
#define CONFIG_USB_PD_COMM_ENABLED 0
#define CONFIG_USB_PD_CUSTOM_VDM
#define CONFIG_USB_PD_DUAL_ROLE
+#define CONFIG_USB_PD_FLASH_ERASE_CHECK
#define CONFIG_USB_PD_INTERNAL_COMP
#define CONFIG_USBC_SS_MUX
#define CONFIG_ADC
@@ -69,6 +70,12 @@ enum adc_channel {
ADC_CH_COUNT
};
+/* Called when we receive battery level info from the EC. */
+void board_update_battery_soc(int soc);
+
+/* Get the last received battery level. */
+int board_get_battery_soc(void);
+
#endif /* !__ASSEMBLER__ */
#endif /* __BOARD_H */