coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ramstage.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <mainboard/gpio.h>
4 #include <soc/ramstage.h>
5 
7 {
8  // PEG0 Config
9  params->CpuPcieRpAdvancedErrorReporting[0] = 0;
10  params->CpuPcieRpLtrEnable[0] = 1;
11  params->CpuPcieRpPtmEnabled[0] = 0;
12 
13  // PEG1 Config
14  params->CpuPcieRpAdvancedErrorReporting[1] = 0;
15  params->CpuPcieRpLtrEnable[1] = 1;
16  params->CpuPcieRpPtmEnabled[1] = 0;
17 
18  // IOM config
19  params->PchUsbOverCurrentEnable = 0;
20  params->PortResetMessageEnable[8] = 1; // TYPEC1
21  params->UsbTcPortEn = 1;
22 
23  // Low latency legacy I/O
24  params->PchLegacyIoLowLatency = 1;
25 
27 }
static struct sdram_info params
Definition: sdram_configs.c:83
__weak void mainboard_silicon_init_params(SILICON_INIT_UPD *params)
Definition: ramstage.c:162
#define FSP_S_CONFIG
Definition: fsp_upd.h:9
static void mainboard_configure_gpios(void)
Definition: mainboard.c:102