11bb92983SJerome Forissier /* SPDX-License-Identifier: BSD-2-Clause */ 28c4a5a9aSPeng Fan /* 38c4a5a9aSPeng Fan * Copyright (C) 2015 Freescale Semiconductor, Inc. 426267e82SJerome Forissier * Copyright (c) 2017, Linaro Limited 58c4a5a9aSPeng Fan * All rights reserved. 68c4a5a9aSPeng Fan * 78c4a5a9aSPeng Fan * Redistribution and use in source and binary forms, with or without 88c4a5a9aSPeng Fan * modification, are permitted provided that the following conditions are met: 98c4a5a9aSPeng Fan * 108c4a5a9aSPeng Fan * 1. Redistributions of source code must retain the above copyright notice, 118c4a5a9aSPeng Fan * this list of conditions and the following disclaimer. 128c4a5a9aSPeng Fan * 138c4a5a9aSPeng Fan * 2. Redistributions in binary form must reproduce the above copyright notice, 148c4a5a9aSPeng Fan * this list of conditions and the following disclaimer in the documentation 158c4a5a9aSPeng Fan * and/or other materials provided with the distribution. 168c4a5a9aSPeng Fan * 178c4a5a9aSPeng Fan * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 188c4a5a9aSPeng Fan * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 198c4a5a9aSPeng Fan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 208c4a5a9aSPeng Fan * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 218c4a5a9aSPeng Fan * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 228c4a5a9aSPeng Fan * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 238c4a5a9aSPeng Fan * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 248c4a5a9aSPeng Fan * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 258c4a5a9aSPeng Fan * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 268c4a5a9aSPeng Fan * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 278c4a5a9aSPeng Fan * POSSIBILITY OF SUCH DAMAGE. 288c4a5a9aSPeng Fan */ 29*fbe66cf8SEtienne Carriere #ifndef __DRIVERS_IMX_UART_H 30*fbe66cf8SEtienne Carriere #define __DRIVERS_IMX_UART_H 318c4a5a9aSPeng Fan 328c4a5a9aSPeng Fan #include <types_ext.h> 3326267e82SJerome Forissier #include <drivers/serial.h> 348c4a5a9aSPeng Fan 3526267e82SJerome Forissier struct imx_uart_data { 3626267e82SJerome Forissier struct io_pa_va base; 3726267e82SJerome Forissier struct serial_chip chip; 3826267e82SJerome Forissier }; 398c4a5a9aSPeng Fan 4026267e82SJerome Forissier void imx_uart_init(struct imx_uart_data *pd, paddr_t base); 418c4a5a9aSPeng Fan 42*fbe66cf8SEtienne Carriere #endif /* __DRIVERS_IMX_UART_H */ 43