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>
4 #include <arch/io.h>
5 #include <bootblock_common.h>
6 
8 {
9  int i;
10  u32 val;
11 
12  /* Disable PCI-PCI bridge and release GPIO32/33 for other uses. */
13  pm_write8(0xea, 0x1);
14 
15  /* On Larne, after LpcClkDrvSth is set, it needs some time to be stable, because of the buffer ICS551M */
16  for (i = 0; i < 200000; i++)
17  val = inb(0xcd6);
18 }
static void pm_write8(uint8_t reg, uint8_t value)
Definition: acpimmio.h:181
u8 inb(u16 port)
__weak void bootblock_mainboard_early_init(void)
Definition: bootblock.c:16
uint32_t u32
Definition: stdint.h:51
u8 val
Definition: sys.c:300