diff options
Diffstat (limited to 'src/soc/intel/fsp_broadwell_de/include/soc/memory.h')
-rw-r--r-- | src/soc/intel/fsp_broadwell_de/include/soc/memory.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/include/soc/memory.h b/src/soc/intel/fsp_broadwell_de/include/soc/memory.h new file mode 100644 index 0000000000..3bdba2ef56 --- /dev/null +++ b/src/soc/intel/fsp_broadwell_de/include/soc/memory.h @@ -0,0 +1,30 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2019 Facebook, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef _SOC_MEMORY_H_ +#define _SOC_MEMORY_H_ + +/* EDS vol 2, 9.2.24 */ +#define REG_MC_BIOS_REQ 0x98 +#define REG_MC_BIOS_REQ_FREQ_MSK ((1u << 6) - 1) +#define REG_MC_MULTIPLIER 133.33f + +#define IMC_MAX_CHANNELS 2 + +#define SPD_SLAVE_ADDR(chan, slot) (2 * chan + slot) + +void save_dimm_info(void); + +#endif |