Julius Werner | b624ae0 | 2017-06-09 15:17:15 -0700 | [diff] [blame] | 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__ */ |