xref: /optee_os/core/include/drivers/pl011.h (revision fbe66cf83199aa6a2aca9f93384cf1ad9185a5f6)
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2014, Linaro Limited
4  */
5 #ifndef __DRIVERS_PL011_H
6 #define __DRIVERS_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 /* __DRIVERS_PL011_H */
22