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 <amdblocks/acpimmio.h>
5 #include <bootblock_common.h>
6 #include <console/console.h>
8 
9 #define SERIAL_DEV PNP_DEV(0x2e, LPC47N217_SP1)
10 
12 {
13  post_code(0x30);
14  post_code(0x31);
15 
16  gpio_100_write8(0x1, 0x98);
17 
18  /* Disable PCI-PCI bridge and release GPIO32/33 for other uses. */
19  pm_write8(0xea, 0x1);
20 
21  lpc47n217_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
22 }
static void pm_write8(uint8_t reg, uint8_t value)
Definition: acpimmio.h:181
static void gpio_100_write8(uint8_t reg, uint8_t value)
__weak void bootblock_mainboard_early_init(void)
Definition: bootblock.c:16
#define SERIAL_DEV
Definition: bootblock.c:9
#define post_code(value)
Definition: post_code.h:12
void lpc47n217_enable_serial(pnp_devfn_t dev, u16 iobase)
Configure the base I/O port of the specified serial device and enable the serial device.
Definition: early_serial.c:95