1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2016, Linaro Limited 4 * All rights reserved. 5 */ 6 7 /* 8 * UART driver for Hisilicon Hi16xx and Phosphor V660 (hip05) SoCs 9 */ 10 11 #ifndef HI16XX_UART_H 12 #define HI16XX_UART_H 13 14 #include <types_ext.h> 15 #include <drivers/serial.h> 16 17 #define HI16XX_UART_REG_SIZE 0xF8 18 19 struct hi16xx_uart_data { 20 struct io_pa_va base; 21 struct serial_chip chip; 22 }; 23 24 void hi16xx_uart_init(struct hi16xx_uart_data *pd, paddr_t base, 25 uint32_t uart_clk, uint32_t baud_rate); 26 27 #endif /* HI16XX_UART_H */ 28