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 <jviarddegalbert@online.net>
Reviewed-on: https://review.coreboot.org/24912
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Julien Viard de Galbert 2018-05-02 10:55:25 +02:00 committed by Patrick Georgi
parent 52165966f3
commit 9d217bf79a
1 changed files with 10 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#include <fsp/api.h>
#include <soc/ramstage.h>
#include <smbios.h>
#include <spd.h>
#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;
}