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