3 #include <baseboard/variants.h>
6 #include <soc/romstage.h>
22 bool need_update_cache =
false;
23 bool dimm_changed =
true;
31 if (dimm_changed && memupd->FspmArchUpd.NvsBufferPtr != 0) {
34 memupd->FspmArchUpd.NvsBufferPtr = 0;
37 need_update_cache =
true;
@ CB_ERR
Generic error code.
@ CB_SUCCESS
Call completed successfully.
void cannonlake_memcfg_init(FSP_M_CONFIG *mem_cfg, const struct cnl_mb_cfg *cnl_cfg)
#define printk(level,...)
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_WARNING
BIOS_WARNING - Bad configuration.
static const struct cnl_mb_cfg memcfg
const struct mb_cfg *__weak variant_memory_params(void)
void mainboard_memory_init_params(FSPM_UPD *memupd)
void get_spd_smbus(struct spd_block *blk)
void dump_spd_info(struct spd_block *blk)
bool check_if_dimm_changed(u8 *spd_cache, struct spd_block *blk)
enum cb_err load_spd_cache(uint8_t **spd_cache, size_t *spd_cache_sz)
enum cb_err spd_fill_from_cache(uint8_t *spd_cache, struct spd_block *blk)
enum cb_err update_spd_cache(struct spd_block *blk)
bool spd_cache_is_valid(uint8_t *spd_cache, size_t spd_cache_sz)
uint8_t dq_pins_interleaved
struct spd_info spd[NUM_DIMM_SLOT]
u8 addr_map[CONFIG_DIMM_MAX]
u8 * spd_array[CONFIG_DIMM_MAX]
union spd_info::spd_data_by spd_spec
enum mem_info_read_type read_type
struct spd_by_pointer spd_data_ptr_info