mb/google/sarien: Update SMBIOS type17
Match SMBIOS type 17 device locator with motherboard silk screen,using "DIMM-A" and "DIMM-B" instead of "Channel-0-DIMM-0" and "Chaneel-1-DIMM-0". TEST=Boot up with sarien platform and run dmidecode to check SMBIOS type 17 have expected output. Signed-off-by: Lijian Zhao <lijian.zhao@intel.com> Change-Id: Ie2125c0381bd24d96f725f68cde93a53da8c94c8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/32280 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
parent
10ea93c334
commit
fc5a3c949d
|
@ -14,11 +14,31 @@
|
|||
*/
|
||||
|
||||
#include <arch/acpi.h>
|
||||
#include <smbios.h>
|
||||
#include <soc/gpio.h>
|
||||
#include <soc/ramstage.h>
|
||||
#include <variant/gpio.h>
|
||||
#include <vendorcode/google/chromeos/chromeos.h>
|
||||
|
||||
#if CONFIG(GENERATE_SMBIOS_TABLES)
|
||||
/* mainboard silk screen shows DIMM-A and DIMM-B */
|
||||
void smbios_fill_dimm_locator(const struct dimm_info *dimm,
|
||||
struct smbios_type17 *t)
|
||||
{
|
||||
switch (dimm->channel_num) {
|
||||
case 0:
|
||||
t->device_locator = smbios_add_string(t->eos, "DIMM-A");
|
||||
break;
|
||||
case 1:
|
||||
t->device_locator = smbios_add_string(t->eos, "DIMM-B");
|
||||
break;
|
||||
default:
|
||||
t->device_locator = smbios_add_string(t->eos, "UNKNOWN");
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void mainboard_silicon_init_params(FSP_S_CONFIG *params)
|
||||
{
|
||||
const struct pad_config *gpio_table;
|
||||
|
|
Loading…
Reference in New Issue