1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2014, Linaro Limited 4 */ 5 #ifndef PL011_H 6 #define PL011_H 7 8 #include <types_ext.h> 9 #include <drivers/serial.h> 10 11 #define PL011_REG_SIZE 0x1000 12 13 struct pl011_data { 14 struct io_pa_va base; 15 struct serial_chip chip; 16 }; 17 18 void pl011_init(struct pl011_data *pd, paddr_t pbase, uint32_t uart_clk, 19 uint32_t baud_rate); 20 21 #endif /* PL011_H */ 22