summaryrefslogtreecommitdiff
path: root/chip/g/usart.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/g/usart.h')
-rw-r--r--chip/g/usart.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chip/g/usart.h b/chip/g/usart.h
index cd3a9cfe40..2d9f04974f 100644
--- a/chip/g/usart.h
+++ b/chip/g/usart.h
@@ -74,4 +74,13 @@ void get_data_from_usb(struct usart_config const *config);
/* Helper for UART bitbang mode. */
extern struct usart_config const ec_uart;
+/* Change EC UART-USB Bridge status */
+void uart_ec_bridge_enable(int enabled, int write);
+
+/* Return non-zero if EC UART-USB Bridge is enabled, or 0 otherwise */
+int uart_ec_bridge_is_enabled(void);
+
+/* Return non-zero if EC UART-USB Bridge is readwritable, or 0 otherwise */
+int uart_ec_bridge_tx_is_enabled(void);
+
#endif /* __CROS_FORWARD_UART_H */