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 <
southbridge/amd/pi/hudson/hudson.h
>
6
#include <
superio/nuvoton/common/nuvoton.h
>
7
#include <
superio/nuvoton/nct5104d/nct5104d.h
>
8
9
#define SIO_PORT 0x2e
10
#define SERIAL1_DEV PNP_DEV(SIO_PORT, NCT5104D_SP1)
11
#define SERIAL2_DEV PNP_DEV(SIO_PORT, NCT5104D_SP2)
12
13
void
bootblock_mainboard_early_init
(
void
)
14
{
15
hudson_lpc_port80
();
16
hudson_clk_output_48Mhz
();
17
18
/* COM2 on apu5 is reserved so only COM1 should be supported */
19
if
((CONFIG_UART_FOR_CONSOLE == 1) &&
20
!
CONFIG
(BOARD_PCENGINES_APU5))
21
nuvoton_enable_serial
(
SERIAL2_DEV
, CONFIG_TTYS0_BASE);
22
else
if
(CONFIG_UART_FOR_CONSOLE == 0)
23
nuvoton_enable_serial
(
SERIAL1_DEV
, CONFIG_TTYS0_BASE);
24
}
hudson_lpc_port80
void hudson_lpc_port80(void)
Definition:
early_setup.c:57
hudson_clk_output_48Mhz
void hudson_clk_output_48Mhz(void)
Definition:
early_setup.c:179
bootblock_common.h
CONFIG
@ CONFIG
Definition:
dsi_common.h:201
bootblock_mainboard_early_init
__weak void bootblock_mainboard_early_init(void)
Definition:
bootblock.c:16
SERIAL2_DEV
#define SERIAL2_DEV
Definition:
bootblock.c:11
SERIAL1_DEV
#define SERIAL1_DEV
Definition:
bootblock.c:10
nct5104d.h
nuvoton_enable_serial
void nuvoton_enable_serial(pnp_devfn_t dev, u16 iobase)
Definition:
early_serial.c:48
nuvoton.h
hudson.h
pnp_type.h
src
mainboard
pcengines
apu2
bootblock.c
Generated by
1.9.1