11bb92983SJerome Forissier /* SPDX-License-Identifier: BSD-2-Clause */ 21aab5c11SVolodymyr Babchuk /* 31aab5c11SVolodymyr Babchuk * Copyright (c) 2016, GlobalLogic 40abbda6eSJerome Forissier * Copyright (c) 2017, Linaro Limited 51aab5c11SVolodymyr Babchuk * All rights reserved. 61aab5c11SVolodymyr Babchuk * 71aab5c11SVolodymyr Babchuk * Redistribution and use in source and binary forms, with or without 81aab5c11SVolodymyr Babchuk * modification, are permitted provided that the following conditions are met: 91aab5c11SVolodymyr Babchuk * 101aab5c11SVolodymyr Babchuk * 1. Redistributions of source code must retain the above copyright notice, 111aab5c11SVolodymyr Babchuk * this list of conditions and the following disclaimer. 121aab5c11SVolodymyr Babchuk * 131aab5c11SVolodymyr Babchuk * 2. Redistributions in binary form must reproduce the above copyright notice, 141aab5c11SVolodymyr Babchuk * this list of conditions and the following disclaimer in the documentation 151aab5c11SVolodymyr Babchuk * and/or other materials provided with the distribution. 161aab5c11SVolodymyr Babchuk * 171aab5c11SVolodymyr Babchuk * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 181aab5c11SVolodymyr Babchuk * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 191aab5c11SVolodymyr Babchuk * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 201aab5c11SVolodymyr Babchuk * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 211aab5c11SVolodymyr Babchuk * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 221aab5c11SVolodymyr Babchuk * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 231aab5c11SVolodymyr Babchuk * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 241aab5c11SVolodymyr Babchuk * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 251aab5c11SVolodymyr Babchuk * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 261aab5c11SVolodymyr Babchuk * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 271aab5c11SVolodymyr Babchuk * POSSIBILITY OF SUCH DAMAGE. 281aab5c11SVolodymyr Babchuk */ 29*fbe66cf8SEtienne Carriere #ifndef __DRIVERS_SCIF_H 30*fbe66cf8SEtienne Carriere #define __DRIVERS_SCIF_H 311aab5c11SVolodymyr Babchuk 321aab5c11SVolodymyr Babchuk #include <types_ext.h> 330abbda6eSJerome Forissier #include <drivers/serial.h> 341aab5c11SVolodymyr Babchuk 351aab5c11SVolodymyr Babchuk #define SCIF_REG_SIZE 0x1000 361aab5c11SVolodymyr Babchuk 370abbda6eSJerome Forissier struct scif_uart_data { 380abbda6eSJerome Forissier struct io_pa_va base; 390abbda6eSJerome Forissier struct serial_chip chip; 400abbda6eSJerome Forissier }; 411aab5c11SVolodymyr Babchuk 42794b6437SVolodymyr Babchuk void scif_uart_init(struct scif_uart_data *pd, paddr_t base); 431aab5c11SVolodymyr Babchuk 44*fbe66cf8SEtienne Carriere #endif /* __DRIVERS_SCIF_H */ 45