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 <cbmem.h>
4 #include <console/console.h>
5 #include <console/streams.h>
6 #include <console/uart.h>
7 #include <program_loading.h>
8 #include <soc/clock.h>
9 #include <soc/sdram.h>
10 
11 void main(void)
12 {
13  console_init();
14 
15  /* TODO: Follow Section 6.3 (FSBL) of the FU540 manual */
16 
17  clock_init();
18 
19  // re-initialize UART
20  if (CONFIG(CONSOLE_SERIAL))
21  uart_init(CONFIG_UART_FOR_CONSOLE);
22 
23  sdram_init();
24 
26 
27  run_ramstage();
28 }
void main(void)
Definition: romstage.c:13
void sdram_init(void)
Definition: sdram.c:16
void cbmem_initialize_empty(void)
Definition: imd_cbmem.c:45
@ CONFIG
Definition: dsi_common.h:201
void console_init(void)
Definition: init.c:49
void uart_init(unsigned int idx)
Definition: pl011.c:8
void run_ramstage(void)
Definition: prog_loaders.c:85
void clock_init(void)
Definition: clock.c:539