Tim Chu has uploaded this change for review.

View Change

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
---
M src/mainboard/ocp/deltalake/ramstage.c
1 file changed, 39 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/47893/1
diff --git a/src/mainboard/ocp/deltalake/ramstage.c b/src/mainboard/ocp/deltalake/ramstage.c
index 52c55b8..3f9e1c9 100644
--- a/src/mainboard/ocp/deltalake/ramstage.c
+++ b/src/mainboard/ocp/deltalake/ramstage.c
@@ -155,6 +155,38 @@
}
}

+static const struct port_information SMBIOS_type8_info[] = {
+ /*
+ * Port Information fields:
+ * Internal Reference Designator,
+ * Internal Connector Type,
+ * External Reference Designator,
+ * External Connector_Type,
+ * Port Type
+ */
+ {
+ "JCN18 - CPU MIPI60",
+ CONN_OTHER,
+ "",
+ CONN_NONE,
+ TYPE_OTHER_PORT
+ },
+ {
+ "JCN32 - TPM_CONN",
+ CONN_OTHER,
+ "",
+ CONN_NONE,
+ TYPE_OTHER_PORT
+ },
+ {
+ "JCN7 - USB type C",
+ CONN_USB_TYPE_C,
+ "",
+ CONN_NONE,
+ TYPE_USB
+ },
+};
+
static int create_smbios_type9(int *handle, unsigned long *current)
{
int index;
@@ -256,6 +288,13 @@
{
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;

To view, visit change 47893. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I880bb9a5a41077172423f78b56c19aadd93e001f
Gerrit-Change-Number: 47893
Gerrit-PatchSet: 1
Gerrit-Owner: Tim Chu <Tim.Chu@quantatw.com>
Gerrit-MessageType: newchange