blob: 88212c3154e87217322b9556d54c5afba9bc273b [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
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef COREBOOT_H
8#define COREBOOT_H
Julius Wernerb624ae02017-06-09 15:17:15 -07009
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
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000024#endif /* COREBOOT_H */