diff options
author | r.tyminski <r.tyminski@partner.samsung.com> | 2017-06-05 12:44:25 +0200 |
---|---|---|
committer | r.tyminski <r.tyminski@partner.samsung.com> | 2017-06-05 12:44:25 +0200 |
commit | 146aec115cd05a164a88e6d7b07435c57a33817f (patch) | |
tree | d8099075c92576b1928069af274f9b833aca996e /core/include/drivers/imx_uart.h | |
parent | f9a43781767007462965b21f3f518c4cfc0744c7 (diff) | |
download | tef-optee_os-146aec115cd05a164a88e6d7b07435c57a33817f.tar.gz tef-optee_os-146aec115cd05a164a88e6d7b07435c57a33817f.tar.bz2 tef-optee_os-146aec115cd05a164a88e6d7b07435c57a33817f.zip |
Update from upstream to 2.4.0 versionupstream/2.4.0upstream
Change-Id: I2b3a30f20684d6629fe379d9cd7895aff759c301
Diffstat (limited to 'core/include/drivers/imx_uart.h')
-rw-r--r-- | core/include/drivers/imx_uart.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/core/include/drivers/imx_uart.h b/core/include/drivers/imx_uart.h index db63227..bbcc953 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 */ |