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