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