summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorTim Chu <Tim.Chu@quantatw.com>2020-11-23 21:24:20 -0800
committerPatrick Georgi <pgeorgi@google.com>2020-12-01 08:04:30 +0000
commit39ea2232498fe80cabff0a67d6d3f7dccd964ea0 (patch)
treee871169c7adb1590eb7baf530660393b42d598a8 /src/mainboard
parentf5c3e29bdfd3785db4fb293b0a4873e857eabcb7 (diff)
mb/ocp/deltalake: Update SMBIOS type 8 information
Update port connector information for Delta Lake. Tested=Execute "dmidecode -t 8" to check all the information of SMBIOS type 8 is correct. Signed-off-by: Tim Chu <Tim.Chu@quantatw.com> Change-Id: I880bb9a5a41077172423f78b56c19aadd93e001f Reviewed-on: https://review.coreboot.org/c/coreboot/+/47893 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jonathan Zhang <jonzhang@fb.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/ocp/deltalake/ramstage.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/mainboard/ocp/deltalake/ramstage.c b/src/mainboard/ocp/deltalake/ramstage.c
index 96b006020b..72a74daecc 100644
--- a/src/mainboard/ocp/deltalake/ramstage.c
+++ b/src/mainboard/ocp/deltalake/ramstage.c
@@ -180,6 +180,30 @@ static void dl_oem_smbios_strings(struct device *dev, struct smbios_type11 *t)
}
}
+static const struct port_information smbios_type8_info[] = {
+ {
+ .internal_reference_designator = "JCN18 - CPU MIPI60",
+ .internal_connector_type = CONN_OTHER,
+ .external_reference_designator = "",
+ .external_connector_type = CONN_NONE,
+ .port_type = TYPE_OTHER_PORT
+ },
+ {
+ .internal_reference_designator = "JCN32 - TPM_CONN",
+ .internal_connector_type = CONN_OTHER,
+ .external_reference_designator = "",
+ .external_connector_type = CONN_NONE,
+ .port_type = TYPE_OTHER_PORT
+ },
+ {
+ .internal_reference_designator = "JCN7 - USB type C",
+ .internal_connector_type = CONN_USB_TYPE_C,
+ .external_reference_designator = "",
+ .external_connector_type = CONN_NONE,
+ .port_type = TYPE_USB
+ },
+};
+
static int create_smbios_type9(int *handle, unsigned long *current)
{
int index;
@@ -281,6 +305,13 @@ static int mainboard_smbios_data(struct device *dev, int *handle, unsigned long
{
int len = 0;
+ // add port information
+ len += smbios_write_type8(
+ current, handle,
+ smbios_type8_info,
+ ARRAY_SIZE(smbios_type8_info)
+ );
+
len += create_smbios_type9(handle, current);
return len;