coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
romstage.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <arch/stages.h>
4 #include <soc/sdram.h>
5 #include <soc/timer.h>
6 #include <soc/mmu.h>
7 #include <libbdk-hal/bdk-config.h>
8 
9 extern const struct bdk_devicetree_key_value devtree[];
10 
12 {
13  watchdog_poke(0);
14 
15  bdk_config_set_fdt(devtree);
16 
17  sdram_init();
18  soc_mmu_init();
19 
20  watchdog_poke(0);
21 }
__weak void platform_romstage_main(void)
Definition: romstage.c:10
void sdram_init(void)
Definition: sdram.c:16
const struct bdk_devicetree_key_value devtree[]
Definition: bdk_devicetree.c:8
void soc_mmu_init(void)
Definition: mmu.c:9
void watchdog_poke(const size_t index)
Signal the watchdog that we are still running.
Definition: timer.c:174