xref: /rk3399_ARM-atf/include/lib/coreboot.h (revision ff2743e544f0f82381ebb9dff8f14eacb837d2e0)
1 /*
2  * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef __COREBOOT_H__
8 #define __COREBOOT_H__
9 
10 #include <types.h>
11 
12 typedef struct {
13 	uint32_t type;			/* always 2 (memory-mapped) on ARM */
14 	uint32_t baseaddr;
15 	uint32_t baud;
16 	uint32_t regwidth;		/* in bytes, i.e. usually 4 */
17 	uint32_t input_hertz;
18 	uint32_t uart_pci_addr;		/* unused on current ARM systems */
19 } coreboot_serial_t;
20 extern coreboot_serial_t coreboot_serial;
21 
22 void coreboot_table_setup(void *base);
23 
24 #endif /* __COREBOOT_H__ */
25