From 3afa467a880392f4dbbbc69373eb555731e738b4 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Wed, 27 Oct 2021 20:53:49 +0530 Subject: lib: Use `smbios_bus_width_to_spd_width` for setting dimm.bus_width Make use of `smbios_bus_width_to_spd_width()` for filling DIMM info. Additionally, ensures dimm_info_util.c file is getting compiled for romstage. TEST=dmidecode -t 17 output Total Width and Data Width as expected. Change-Id: I7fdc19fadc576dec43e12f182fe088707e6654d9 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/58655 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/lib/Makefile.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib') diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc index 8da875e255..693a526b66 100644 --- a/src/lib/Makefile.inc +++ b/src/lib/Makefile.inc @@ -110,6 +110,7 @@ romstage-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c romstage-$(CONFIG_CONSOLE_CBMEM) += cbmem_console.c romstage-y += compute_ip_checksum.c +romstage-y += dimm_info_util.c ifeq ($(CONFIG_COMPILER_GCC),y) bootblock-$(CONFIG_ARCH_BOOTBLOCK_X86_32) += gcc.c verstage-$(CONFIG_ARCH_VERSTAGE_X86_32) += gcc.c -- cgit v1.2.3