summaryrefslogtreecommitdiff
path: root/core/include/drivers/pl011.h
blob: b46880eebe8dcfdf5fb5f6c0342ad4be96a8151d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (c) 2014, Linaro Limited
 */
#ifndef PL011_H
#define PL011_H

#include <types_ext.h>
#include <drivers/serial.h>

#define PL011_REG_SIZE	0x1000

struct pl011_data {
	struct io_pa_va base;
	struct serial_chip chip;
};

void pl011_init(struct pl011_data *pd, paddr_t pbase, uint32_t uart_clk,
		uint32_t baud_rate);

#endif /* PL011_H */