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 <device/mmio.h>
4 #include <bootblock_common.h>
5 #include <console/console.h>
6 #include <soc/addressmap.h>
7 
9 {
10  printk(BIOS_INFO, "Boot mode: %d\n", read32((uint32_t *)FU540_MSEL));
11 }
static uint32_t read32(const void *addr)
Definition: mmio.h:22
#define printk(level,...)
Definition: stdlib.h:16
void bootblock_soc_init(void)
Definition: bootblock.c:27
#define BIOS_INFO
BIOS_INFO - Expected events.
Definition: loglevel.h:113
#define FU540_MSEL
Definition: addressmap.h:3
unsigned int uint32_t
Definition: stdint.h:14