blob: f8fbd93d524221cfe0f555787b72199d8e3eff80 [file] [log] [blame]
Julius Wernerb624ae02017-06-09 15:17:15 -07001/*
Antonio Nino Diaz4b32e622018-08-16 16:52:57 +01002 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
Julius Wernerb624ae02017-06-09 15:17:15 -07003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef __COREBOOT_H__
8#define __COREBOOT_H__
9
Antonio Nino Diaz4b32e622018-08-16 16:52:57 +010010#include <stdint.h>
Julius Wernerb624ae02017-06-09 15:17:15 -070011
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__ */