7 #include <soc/romstage.h>
16 mem_cfg = &mupd->FspmConfig;
24 &mem_cfg->DqByteMapCh1);
26 &mem_cfg->DqsMapCpu2DramCh1);
30 if (
CONFIG(BOARD_INTEL_KBLRVP3)) {
31 mem_cfg->DqPinsInterleaved = 0;
32 mem_cfg->MemorySpdDataLen = CONFIG_DIMM_SPD_SIZE;
35 if (!mem_cfg->MemorySpdPtr00)
36 die(
"spd.bin not found\n");
39 .
addr_map = { 0x50, 0x51, 0x52, 0x53, },
42 mem_cfg->DqPinsInterleaved = 1;
44 mem_cfg->MemorySpdDataLen = blk.
len;
58 mupd->FspmTestConfig.DmiVc1 = 1;
#define printk(level,...)
void __noreturn die(const char *fmt,...)
static size_t get_spd_index(void)
#define BOARD_ID_KBL_RVP11
#define BOARD_ID_KBL_RVP8
#define BIOS_INFO
BIOS_INFO - Expected events.
void mainboard_memory_init_params(FSPM_UPD *mupd)
static const int spd_index[32]
static uint8_t get_board_id(void)
static void mainboard_fill_dq_map_data(void *dq_map_ch0, void *dq_map_ch1)
static void mainboard_fill_dqs_map_data(void *dqs_map_ch0, void *dqs_map_ch1)
static void mainboard_fill_rcomp_res_data(void *rcomp_ptr)
static void mainboard_fill_rcomp_strength_data(void *rcomp_strength_ptr)
void get_spd_smbus(struct spd_block *blk)
uintptr_t spd_cbfs_map(u8 spd_index)
u8 addr_map[CONFIG_DIMM_MAX]
u8 * spd_array[CONFIG_DIMM_MAX]