2017-06-09 23:17:15 +01:00
|
|
|
/*
|
2018-08-16 16:52:57 +01:00
|
|
|
* Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
|
2017-06-09 23:17:15 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#ifndef COREBOOT_H
|
|
|
|
#define COREBOOT_H
|
2017-06-09 23:17:15 +01:00
|
|
|
|
2018-08-16 16:52:57 +01:00
|
|
|
#include <stdint.h>
|
2017-06-09 23:17:15 +01:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint32_t type; /* always 2 (memory-mapped) on ARM */
|
|
|
|
uint32_t baseaddr;
|
|
|
|
uint32_t baud;
|
|
|
|
uint32_t regwidth; /* in bytes, i.e. usually 4 */
|
|
|
|
uint32_t input_hertz;
|
|
|
|
uint32_t uart_pci_addr; /* unused on current ARM systems */
|
|
|
|
} coreboot_serial_t;
|
|
|
|
extern coreboot_serial_t coreboot_serial;
|
|
|
|
|
|
|
|
void coreboot_table_setup(void *base);
|
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#endif /* COREBOOT_H */
|