mb/google/volteer: Add probed fw_configs to SMBIOS OEM strings
commit1d8494116f652c2dd833b8495b24066c99d4b59d
authorTim Wawrzynczak <twawrzynczak@chromium.org>
Tue, 25 Aug 2020 22:50:29 +0000 (25 16:50 -0600)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 31 Aug 2020 06:38:17 +0000 (31 06:38 +0000)
tree177d2c899d7eb3482b6d9af1b21eda107cb14418
parent299f3f834fe326d84b2e0e062b8f54196d657368
mb/google/volteer: Add probed fw_configs to SMBIOS OEM strings

Some Linux kernel drivers bind to "DMI quirks." In this case, the audio
fw_config is added as an OEM string, e.g., "AUDIO-MAX98357_ALC5682I_I2S"
so the audio topology can be correctly discovered.
But add all successfully probed fw_config items as well, because this
makes it easier to view what is selected from userspace.

BUG=b:161963281
TEST=With CBI FW_CONFIG field set to 0x201:

localhost ~ # dmidecode -t 11
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 3.0 present.

Handle 0x0009, DMI type 11, 5 bytes
OEM Strings
        String 1: DB_USB-USB4_GEN2
        String 2: AUDIO-MAX98373_ALC5682I_I2S

Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: I7b7586b0ebfe7b2fd888f448a50ae086364fa718
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44783
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/mainboard/google/volteer/mainboard.c