coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootblock.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
bootblock_common.h
>
4
#include <
device/pnp_type.h
>
5
#include <
superio/nuvoton/common/nuvoton.h
>
6
#include <
superio/nuvoton/nct5104d/nct5104d.h
>
7
8
#define SIO_PORT 0x2e
9
#define SERIAL1_DEV PNP_DEV(SIO_PORT, NCT5104D_SP1)
10
#define SERIAL2_DEV PNP_DEV(SIO_PORT, NCT5104D_SP2)
11
12
void
bootblock_mainboard_early_init
(
void
)
13
{
14
if
(CONFIG_UART_FOR_CONSOLE == 1)
15
nuvoton_enable_serial
(
SERIAL2_DEV
, CONFIG_TTYS0_BASE);
16
else
if
(CONFIG_UART_FOR_CONSOLE == 0)
17
nuvoton_enable_serial
(
SERIAL1_DEV
, CONFIG_TTYS0_BASE);
18
}
bootblock_common.h
bootblock_mainboard_early_init
__weak void bootblock_mainboard_early_init(void)
Definition:
bootblock.c:16
SERIAL2_DEV
#define SERIAL2_DEV
Definition:
bootblock.c:10
SERIAL1_DEV
#define SERIAL1_DEV
Definition:
bootblock.c:9
nct5104d.h
nuvoton_enable_serial
void nuvoton_enable_serial(pnp_devfn_t dev, u16 iobase)
Definition:
early_serial.c:48
nuvoton.h
pnp_type.h
src
mainboard
pcengines
apu1
bootblock.c
Generated by
1.9.1