From 9d217bf79ab8c5ab011dab6cea659c37b3603f42 Mon Sep 17 00:00:00 2001 From: Julien Viard de Galbert Date: Wed, 2 May 2018 10:55:25 +0200 Subject: [PATCH] mb/scaleway/tagada: Set DIMM slot information from mainboard This field is not provided by the soc code so add it. TEST=Check the output of 'dmidecode -t memory' Change-Id: I6fdf3520da62336a5c654575ed8d1f33eb4f4dc5 Signed-off-by: Julien Viard de Galbert Reviewed-on: https://review.coreboot.org/24912 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/mainboard/scaleway/tagada/ramstage.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mainboard/scaleway/tagada/ramstage.c b/src/mainboard/scaleway/tagada/ramstage.c index 3ee4a6ebde..341fac048f 100644 --- a/src/mainboard/scaleway/tagada/ramstage.c +++ b/src/mainboard/scaleway/tagada/ramstage.c @@ -20,6 +20,7 @@ #include #include #include +#include #include "bmcinfo.h" @@ -86,3 +87,12 @@ smbios_board_type smbios_mainboard_board_type(void) { return SMBIOS_BOARD_TYPE_SERVER_BLADE; } + +/* Add any mainboard specific information for dimm */ +void mainboard_add_dimm_info( + struct memory_info *mem_info, + int channel, int dimm, int index) +{ + /* Mainboard only has DDR4 DIMM slots */ + mem_info->dimm[index].mod_type = SPD_UDIMM; +}