11bb92983SJerome Forissier /* SPDX-License-Identifier: BSD-2-Clause */ 21537d62eSAijun Sun /* 31537d62eSAijun Sun * Copyright (c) 2016, Spreadtrum Communications Inc. 459cfa779SJerome Forissier * Copyright (c) 2017, Linaro Limited 51537d62eSAijun Sun * All rights reserved. 61537d62eSAijun Sun * 71537d62eSAijun Sun * Redistribution and use in source and binary forms, with or without 81537d62eSAijun Sun * modification, are permitted provided that the following conditions are met: 91537d62eSAijun Sun * 101537d62eSAijun Sun * 1. Redistributions of source code must retain the above copyright notice, 111537d62eSAijun Sun * this list of conditions and the following disclaimer. 121537d62eSAijun Sun * 131537d62eSAijun Sun * 2. Redistributions in binary form must reproduce the above copyright notice, 141537d62eSAijun Sun * this list of conditions and the following disclaimer in the documentation 151537d62eSAijun Sun * and/or other materials provided with the distribution. 161537d62eSAijun Sun * 171537d62eSAijun Sun * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 181537d62eSAijun Sun * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 191537d62eSAijun Sun * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 201537d62eSAijun Sun * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 211537d62eSAijun Sun * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 221537d62eSAijun Sun * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 231537d62eSAijun Sun * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 241537d62eSAijun Sun * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 251537d62eSAijun Sun * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 261537d62eSAijun Sun * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 271537d62eSAijun Sun * POSSIBILITY OF SUCH DAMAGE. 281537d62eSAijun Sun */ 29*fbe66cf8SEtienne Carriere #ifndef __DRIVERS_SPRD_UART_H 30*fbe66cf8SEtienne Carriere #define __DRIVERS_SPRD_UART_H 311537d62eSAijun Sun 321537d62eSAijun Sun #include <types_ext.h> 3359cfa779SJerome Forissier #include <drivers/serial.h> 341537d62eSAijun Sun 3559cfa779SJerome Forissier struct sprd_uart_data { 3659cfa779SJerome Forissier struct io_pa_va base; 3759cfa779SJerome Forissier struct serial_chip chip; 3859cfa779SJerome Forissier }; 391537d62eSAijun Sun 4059cfa779SJerome Forissier void sprd_uart_init(struct sprd_uart_data *pd, paddr_t base); 411537d62eSAijun Sun 42*fbe66cf8SEtienne Carriere #endif /* __DRIVERS_SPRD_UART_H */ 431537d62eSAijun Sun 44