From 24efe73dfd6bb52cd815513fc27e728db7481fd7 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Sun, 19 Aug 2018 11:06:06 +0200 Subject: nb/intel/sandybridge/raminit: Move fill_smbios17 to ddr3.c There's nothing Sandy Bridge specific in this code. Make it available on all platforms to reduce code duplication. Tested on Lenovo T430: SMBIOS entry 17 is still valid. Change-Id: I051c3e07a999d8dad082c24f65b43dce180349fd Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/28213 Tested-by: build bot (Jenkins) Reviewed-by: Alexander Couzens Reviewed-by: Felix Held --- src/include/device/dram/ddr3.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include/device/dram/ddr3.h') diff --git a/src/include/device/dram/ddr3.h b/src/include/device/dram/ddr3.h index 563be10c07..5643787c01 100644 --- a/src/include/device/dram/ddr3.h +++ b/src/include/device/dram/ddr3.h @@ -32,6 +32,7 @@ #include #include #include +#include /** @@ -193,7 +194,9 @@ void dram_print_spd_ddr3(const dimm_attr *dimm); int spd_xmp_decode_ddr3(dimm_attr *dimm, spd_raw_data spd, enum ddr3_xmp_profile profile); - +enum cb_err spd_add_smbios17(const u8 channel, const u8 slot, + const u16 selected_freq, + const dimm_attr *info); /** * \brief Read double word from specified address * -- cgit v1.2.3