blob: 4b1f200a237811c8618f0bb104ce4367c5536401 [file] [log] [blame]
Julius Wernerb624ae02017-06-09 15:17:15 -07001/*
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
12typedef 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;
20extern coreboot_serial_t coreboot_serial;
21
22void coreboot_table_setup(void *base);
23
24#endif /* __COREBOOT_H__ */