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 <fsp/api.h>
4
#include <soc/romstage.h>
5
#include <
spd_bin.h
>
6
7
void
mainboard_memory_init_params
(FSPM_UPD *mupd)
8
{
9
FSP_M_CONFIG
*mem_cfg = &mupd->FspmConfig;
10
11
struct
spd_block
blk = {
12
.
addr_map
= { 0x50, 0x51, 0x52, 0x53, },
13
};
14
15
mem_cfg->DqPinsInterleaved = 1;
16
mem_cfg->CaVrefConfig = 2;
17
get_spd_smbus
(&blk);
18
mem_cfg->MemorySpdDataLen = blk.
len
;
19
mem_cfg->MemorySpdPtr00 = (
uintptr_t
)blk.
spd_array
[0];
20
mem_cfg->MemorySpdPtr10 = (
uintptr_t
)blk.
spd_array
[2];
21
mem_cfg->MemorySpdPtr01 = (
uintptr_t
)blk.
spd_array
[1];
22
mem_cfg->MemorySpdPtr11 = (
uintptr_t
)blk.
spd_array
[3];
23
mem_cfg->UserBd =
BOARD_TYPE_SERVER
;
24
25
mupd->FspmTestConfig.DmiVc1 = 1;
26
}
FSP_M_CONFIG
#define FSP_M_CONFIG
Definition:
fsp_upd.h:8
mainboard_memory_init_params
void mainboard_memory_init_params(FSPM_UPD *mupd)
Definition:
romstage.c:22
BOARD_TYPE_SERVER
@ BOARD_TYPE_SERVER
Definition:
romstage.h:18
spd_bin.h
get_spd_smbus
void get_spd_smbus(struct spd_block *blk)
Definition:
smbuslib.c:72
uintptr_t
unsigned long uintptr_t
Definition:
stdint.h:21
spd_block
Definition:
ddr4.c:86
spd_block::addr_map
u8 addr_map[CONFIG_DIMM_MAX]
Definition:
spd_bin.h:39
spd_block::spd_array
u8 * spd_array[CONFIG_DIMM_MAX]
Definition:
spd_bin.h:40
spd_block::len
uint16_t len
Definition:
ddr4.c:89
src
mainboard
supermicro
x11-lga1151-series
romstage.c
Generated by
1.9.1