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-or-later */
2 
3 #include <device/pci_ops.h>
4 #include <soc/lpc.h>
5 #include <soc/pci_devs.h>
6 #include <soc/romstage.h>
9 
10 #define SERIAL1_DEV PNP_DEV(0x2e, IT8613E_SP1)
11 
13 {
14  /*
15  * FSP enables internal UART. Disable it and re-enable Super I/O UART to
16  * prevent loss of debug information on serial.
17  */
19  ite_enable_serial(SERIAL1_DEV, CONFIG_TTYS0_BASE);
20 }
21 
23  MEMORY_INIT_UPD *memory_params)
24 {
25  /*
26  * Set SPD and memory configuration:
27  * Memory type: 0=DimmInstalled,
28  * 1=SolderDownMemory,
29  * 2=DimmDisabled
30  */
31  memory_params->PcdMemChannel0Config = 0;
32  memory_params->PcdMemChannel1Config = 2;
33 }
static struct sdram_info params
Definition: sdram_configs.c:83
static __always_inline void pci_write_config32(const struct device *dev, u16 reg, u32 val)
Definition: pci_ops.h:76
void ite_enable_serial(pnp_devfn_t dev, u16 iobase)
Definition: early_serial.c:61
void mainboard_memory_init_params(FSPM_UPD *mupd)
Definition: romstage.c:22
void mainboard_after_memory_init(void)
Definition: romstage.c:49
#define SERIAL1_DEV
Definition: romstage.c:10
#define LPC_DEV
Definition: romstage.c:15
#define PCI_DEV(SEGBUS, DEV, FN)
Definition: pci_type.h:14
#define UART_CONT
Definition: lpc.h:16
uint32_t u32
Definition: stdint.h:51