summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/broadwell/raminit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/broadwell/raminit.c b/src/soc/intel/broadwell/raminit.c
index c55e755055..cacf8ecc89 100644
--- a/src/soc/intel/broadwell/raminit.c
+++ b/src/soc/intel/broadwell/raminit.c
@@ -16,6 +16,7 @@
#include <soc/romstage.h>
#include <soc/systemagent.h>
#include <timestamp.h>
+#include <types.h>
static void save_mrc_data(struct pei_data *pei_data)
{
@@ -46,7 +47,7 @@ static void report_memory_config(void)
const u32 addr_decoder_common = mchbar_read32(MAD_CHNL);
printk(BIOS_DEBUG, "memcfg DDR3 clock %d MHz\n",
- (mchbar_read32(MC_BIOS_DATA) * 13333 * 2 + 50) / 100);
+ DIV_ROUND_CLOSEST(mchbar_read32(MC_BIOS_DATA) * 13333 * 2, 100));
printk(BIOS_DEBUG, "memcfg channel assignment: A: %d, B % d, C % d\n",
(addr_decoder_common >> 0) & 3,