aboutsummaryrefslogtreecommitdiff
path: root/core/include/drivers/imx_uart.h
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2017-02-17 14:35:55 +0100
committerJerome Forissier <jerome.forissier@linaro.org>2017-03-17 18:23:51 +0100
commit26267e8209dfae98152c7cea053067c24d4b5952 (patch)
tree12b2e15f8b31adc04113b436816c9c7af0fc275a /core/include/drivers/imx_uart.h
parented7617df5b6e5e629b307195ea2800bb0a77b1ed (diff)
drivers: convert imx_uart driver to use struct serial_chip
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Diffstat (limited to 'core/include/drivers/imx_uart.h')
-rw-r--r--core/include/drivers/imx_uart.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/core/include/drivers/imx_uart.h b/core/include/drivers/imx_uart.h
index db63227b..bbcc9533 100644
--- a/core/include/drivers/imx_uart.h
+++ b/core/include/drivers/imx_uart.h
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2015 Freescale Semiconductor, Inc.
+ * Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -28,15 +29,13 @@
#define IMX_UART_H
#include <types_ext.h>
+#include <drivers/serial.h>
-void imx_uart_init(vaddr_t base);
+struct imx_uart_data {
+ struct io_pa_va base;
+ struct serial_chip chip;
+};
-void imx_uart_putc(const char ch, vaddr_t base);
-
-void imx_uart_flush_tx_fifo(vaddr_t base);
-
-bool imx_uart_have_rx_data(vaddr_t base);
-
-int imx_uart_getchar(vaddr_t base);
+void imx_uart_init(struct imx_uart_data *pd, paddr_t base);
#endif /* IMX_UART_H */