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
7
void
bootblock_mainboard_early_init
(
void
)
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
}
acpimmio.h
pm_write8
static void pm_write8(uint8_t reg, uint8_t value)
Definition:
acpimmio.h:181
bootblock_common.h
inb
u8 inb(u16 port)
bootblock_mainboard_early_init
__weak void bootblock_mainboard_early_init(void)
Definition:
bootblock.c:16
u32
uint32_t u32
Definition:
stdint.h:51
val
u8 val
Definition:
sys.c:300
src
mainboard
amd
olivehill
bootblock.c
Generated by
1.9.1