Bryant Ou has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecoe -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com --- M src/mainboard/ocp/tiogapass/ramstage.c 1 file changed, 130 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/40547/1
diff --git a/src/mainboard/ocp/tiogapass/ramstage.c b/src/mainboard/ocp/tiogapass/ramstage.c index 16b4fd9..a6ca01d 100644 --- a/src/mainboard/ocp/tiogapass/ramstage.c +++ b/src/mainboard/ocp/tiogapass/ramstage.c @@ -16,11 +16,141 @@ #include <bootstate.h> #include <gpio.h> #include <soc/lewisburg_pch_gpio_defs.h> +#include <smbios.h>
void mainboard_silicon_init_params(FSPS_UPD *params) { }
+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 + */ + { + "J7F5 - BMC JTAG HEADER", + CONN_OTHER, + 0, + CONN_NONE, + TYPE_OTHER + }, + { + "J8A1 - MINISAS1", + CONN_SAS_SATA, + 0, + CONN_NONE, + TYPE_SAS + }, + { + "J8A2 - MINISAS2", + CONN_SAS_SATA, + 0, + CONN_NONE, + TYPE_SAS + }, + { + "J8A3 - SATA CONBINE1", + CONN_SAS_SATA, + 0, + CONN_NONE, + TYPE_SAS + }, + { + "J8B1 - ME_DBG", + CONN_OTHER, + 0, + CONN_NONE, + TYPE_OTHER + }, + { + "J8D1 - VR_DBG", + CONN_OTHER, + 0, + CONN_NONE, + TYPE_OTHER + }, + { + "J8E1 - TPM_MODULE", + CONN_OTHER, + 0, + CONN_NONE, + TYPE_OTHER + }, + { + "J8F1 - M.2 CONNECTOR", + CONN_OTHER, + 0, + CONN_NONE, + TYPE_OTHER + }, + { + "J9A1 - SATA RAID KEY", + CONN_OTHER, + 0, + CONN_NONE, + TYPE_OTHER + }, + { + 0, + CONN_NONE, + "J9A2 - DEBUG 80 PORT", + CONN_OTHER, + TYPE_OTHER + }, + { + "J9A3 - CPU & PCH XDP", + CONN_OTHER, + 0, + CONN_NONE, + TYPE_OTHER + }, + { + 0, + CONN_NONE, + "J9A5 - USB conn", + CONN_ACCESS_BUS_USB, + TYPE_USB + }, + { + "J9B1 - BMC_DBG", + CONN_OTHER, + 0, + CONN_NONE, + TYPE_OTHER + }, + { + 0, + CONN_NONE, + "J9D1 - USB3.0 TYPE C", + CONN_ACCESS_BUS_USB, + TYPE_USB + }, + { + 0, + CONN_NONE, + "J9E1 - VGA", + CONN_OTHER, + TYPE_OTHER + }, + { + 0, + CONN_NONE, + "JA9G1 - ETH0", + CONN_RJ_45, + TYPE_NETWORK_PORT + }, +}; + +const struct port_information *__weak smbios_get_port_info(size_t *num_port) +{ + *num_port = ARRAY_SIZE(SMBIOS_type8_info); + return SMBIOS_type8_info; +} + static void pull_post_complete_pin(void *unused) { /* Pull Low post complete pin */
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 1:
(5 comments)
https://review.coreboot.org/c/coreboot/+/40547/1/src/mainboard/ocp/tiogapass... File src/mainboard/ocp/tiogapass/ramstage.c:
https://review.coreboot.org/c/coreboot/+/40547/1/src/mainboard/ocp/tiogapass... PS1, Line 28: * Internal Reference Designator, please, no space before tabs
https://review.coreboot.org/c/coreboot/+/40547/1/src/mainboard/ocp/tiogapass... PS1, Line 29: * Internal Connector Type, please, no space before tabs
https://review.coreboot.org/c/coreboot/+/40547/1/src/mainboard/ocp/tiogapass... PS1, Line 30: * External Reference Designator, please, no space before tabs
https://review.coreboot.org/c/coreboot/+/40547/1/src/mainboard/ocp/tiogapass... PS1, Line 31: * External Connector_Type, please, no space before tabs
https://review.coreboot.org/c/coreboot/+/40547/1/src/mainboard/ocp/tiogapass... PS1, Line 32: * Port Type please, no space before tabs
Bryant Ou has uploaded a new patch set (#2). ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecoe -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com --- M src/mainboard/ocp/tiogapass/ramstage.c 1 file changed, 130 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/40547/2
Bryant Ou has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 2:
(5 comments)
Patch Set 1:
(5 comments)
https://review.coreboot.org/c/coreboot/+/40547/1/src/mainboard/ocp/tiogapass... File src/mainboard/ocp/tiogapass/ramstage.c:
https://review.coreboot.org/c/coreboot/+/40547/1/src/mainboard/ocp/tiogapass... PS1, Line 28: * Internal Reference Designator,
please, no space before tabs
Done
https://review.coreboot.org/c/coreboot/+/40547/1/src/mainboard/ocp/tiogapass... PS1, Line 29: * Internal Connector Type,
please, no space before tabs
Done
https://review.coreboot.org/c/coreboot/+/40547/1/src/mainboard/ocp/tiogapass... PS1, Line 30: * External Reference Designator,
please, no space before tabs
Done
https://review.coreboot.org/c/coreboot/+/40547/1/src/mainboard/ocp/tiogapass... PS1, Line 31: * External Connector_Type,
please, no space before tabs
Done
https://review.coreboot.org/c/coreboot/+/40547/1/src/mainboard/ocp/tiogapass... PS1, Line 32: * Port Type
please, no space before tabs
Done
Hello build bot (Jenkins), Andrey Petrov, Jonathan Zhang, Ryback Hung, David Hendricks, Tim Chu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/40547
to look at the new patch set (#3).
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecoe -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com --- M src/mainboard/ocp/tiogapass/ramstage.c 1 file changed, 130 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/40547/3
Jonathan Zhang has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 3: Code-Review+1
Hello build bot (Jenkins), Andrey Petrov, Jonathan Zhang, Ryback Hung, David Hendricks, Tim Chu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/40547
to look at the new patch set (#4).
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecoe -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com --- M src/mainboard/ocp/tiogapass/ramstage.c 1 file changed, 130 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/40547/4
Hello build bot (Jenkins), Andrey Petrov, Jonathan Zhang, Ryback Hung, David Hendricks, Tim Chu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/40547
to look at the new patch set (#5).
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecoe -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com --- M src/mainboard/ocp/tiogapass/Makefile.inc A src/mainboard/ocp/tiogapass/mainboard.c 2 files changed, 157 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/40547/5
Bryant Ou has removed Patrick Georgi from this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Removed reviewer Patrick Georgi.
Bryant Ou has removed Martin Roth from this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Removed reviewer Martin Roth.
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 5:
(2 comments)
https://review.coreboot.org/c/coreboot/+/40547/5/src/mainboard/ocp/tiogapass... File src/mainboard/ocp/tiogapass/mainboard.c:
https://review.coreboot.org/c/coreboot/+/40547/5/src/mainboard/ocp/tiogapass... PS5, Line 2: /* This file is part of the coreboot project. */ please, remove
https://review.coreboot.org/c/coreboot/+/40547/5/src/mainboard/ocp/tiogapass... PS5, Line 20: TYPE_OTHER TYPE_OTHER_PORT
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 5: Code-Review+1
This would need to be rebased
Hello build bot (Jenkins), Andrey Petrov, Jonathan Zhang, Ryback Hung, David Hendricks, Angel Pons, Tim Chu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/40547
to look at the new patch set (#6).
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecoe -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com --- M src/mainboard/ocp/tiogapass/Makefile.inc A src/mainboard/ocp/tiogapass/mainboard.c 2 files changed, 156 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/40547/6
Bryant Ou has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 6:
(2 comments)
https://review.coreboot.org/c/coreboot/+/40547/5/src/mainboard/ocp/tiogapass... File src/mainboard/ocp/tiogapass/mainboard.c:
https://review.coreboot.org/c/coreboot/+/40547/5/src/mainboard/ocp/tiogapass... PS5, Line 2: /* This file is part of the coreboot project. */
please, remove
Done
https://review.coreboot.org/c/coreboot/+/40547/5/src/mainboard/ocp/tiogapass... PS5, Line 20: TYPE_OTHER
TYPE_OTHER_PORT
Done
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 6: Code-Review+2
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 6:
(1 comment)
https://review.coreboot.org/c/coreboot/+/40547/6//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/40547/6//COMMIT_MSG@11 PS6, Line 11: dmidecoe dmideco*d*e
Hello build bot (Jenkins), Andrey Petrov, Patrick Georgi, Martin Roth, Jonathan Zhang, Ryback Hung, David Hendricks, Angel Pons, Tim Chu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/40547
to look at the new patch set (#7).
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecode -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com --- M src/mainboard/ocp/tiogapass/Makefile.inc A src/mainboard/ocp/tiogapass/mainboard.c 2 files changed, 156 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/40547/7
Bryant Ou has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 7:
(1 comment)
https://review.coreboot.org/c/coreboot/+/40547/6//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/40547/6//COMMIT_MSG@11 PS6, Line 11: dmidecoe
dmideco*d*e
Done
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 7:
This needs a manual rebase now 😞
Hello build bot (Jenkins), Andrey Petrov, Patrick Georgi, Martin Roth, Jonathan Zhang, Ryback Hung, David Hendricks, Angel Pons, Tim Chu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/40547
to look at the new patch set (#8).
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecode -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com --- M src/mainboard/ocp/tiogapass/Makefile.inc A src/mainboard/ocp/tiogapass/mainboard.c 2 files changed, 156 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/40547/8
Hello build bot (Jenkins), Andrey Petrov, Patrick Georgi, Martin Roth, Jonathan Zhang, Ryback Hung, David Hendricks, Angel Pons, Tim Chu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/40547
to look at the new patch set (#9).
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecode -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com --- M src/mainboard/ocp/tiogapass/Makefile.inc A src/mainboard/ocp/tiogapass/mainboard.c 2 files changed, 156 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/40547/9
Hello build bot (Jenkins), Andrey Petrov, Patrick Georgi, Martin Roth, Jonathan Zhang, Ryback Hung, David Hendricks, Angel Pons, Tim Chu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/40547
to look at the new patch set (#10).
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecode -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com --- M src/mainboard/ocp/tiogapass/Makefile.inc A src/mainboard/ocp/tiogapass/mainboard.c 2 files changed, 156 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/40547/10
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 11: Code-Review+1
(1 comment)
https://review.coreboot.org/c/coreboot/+/40547/11/src/mainboard/ocp/tiogapas... File src/mainboard/ocp/tiogapass/mainboard.c:
https://review.coreboot.org/c/coreboot/+/40547/11/src/mainboard/ocp/tiogapas... PS11, Line 152: mainboard_ops This is defined multiple times now.
Hello build bot (Jenkins), Andrey Petrov, Patrick Georgi, Martin Roth, Jonathan Zhang, Ryback Hung, David Hendricks, Angel Pons, Tim Chu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/40547
to look at the new patch set (#12).
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecode -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com --- M src/mainboard/ocp/tiogapass/ramstage.c 1 file changed, 141 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/40547/12
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 12: Code-Review+1
(2 comments)
https://review.coreboot.org/c/coreboot/+/40547/11/src/mainboard/ocp/tiogapas... File src/mainboard/ocp/tiogapass/mainboard.c:
https://review.coreboot.org/c/coreboot/+/40547/11/src/mainboard/ocp/tiogapas... PS11, Line 152: mainboard_ops
This is defined multiple times now.
Done
https://review.coreboot.org/c/coreboot/+/40547/12/src/mainboard/ocp/tiogapas... File src/mainboard/ocp/tiogapass/ramstage.c:
https://review.coreboot.org/c/coreboot/+/40547/12/src/mainboard/ocp/tiogapas... PS12, Line 27: 0 NULL
Hello build bot (Jenkins), Andrey Petrov, Patrick Georgi, Martin Roth, Jonathan Zhang, Ryback Hung, David Hendricks, Angel Pons, Tim Chu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/40547
to look at the new patch set (#13).
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecode -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com --- M src/mainboard/ocp/tiogapass/ramstage.c 1 file changed, 141 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/47/40547/13
Bryant Ou has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 13:
(1 comment)
https://review.coreboot.org/c/coreboot/+/40547/12/src/mainboard/ocp/tiogapas... File src/mainboard/ocp/tiogapass/ramstage.c:
https://review.coreboot.org/c/coreboot/+/40547/12/src/mainboard/ocp/tiogapas... PS12, Line 27: 0
NULL
Done
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
Patch Set 13: Code-Review+2
Angel Pons has submitted this change. ( https://review.coreboot.org/c/coreboot/+/40547 )
Change subject: mb/ocp/tiogapass: Add SMBIOS type8 data table ......................................................................
mb/ocp/tiogapass: Add SMBIOS type8 data table
According to MP MB to port SMBIOS type8 data.
Tested=Use "dmidecode -t 8" to dump SMBIOS data, and check if type8 tables are implemented.
Change-Id: I356e645774d78c623c1398c8b1473562e1529cf2 Signed-off-by: BryantOu Bryant.Ou.Q@gmail.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/40547 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Angel Pons th3fanbus@gmail.com --- M src/mainboard/ocp/tiogapass/ramstage.c 1 file changed, 141 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Angel Pons: Looks good to me, approved
diff --git a/src/mainboard/ocp/tiogapass/ramstage.c b/src/mainboard/ocp/tiogapass/ramstage.c index f02667b..0e520f0 100644 --- a/src/mainboard/ocp/tiogapass/ramstage.c +++ b/src/mainboard/ocp/tiogapass/ramstage.c @@ -12,6 +12,129 @@
extern struct fru_info_str fru_strings;
+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 + */ + { + "J7F5 - BMC JTAG HEADER", + CONN_OTHER, + NULL, + CONN_NONE, + TYPE_OTHER_PORT + }, + { + "J8A1 - MINISAS1", + CONN_SAS_SATA, + NULL, + CONN_NONE, + TYPE_SAS + }, + { + "J8A2 - MINISAS2", + CONN_SAS_SATA, + NULL, + CONN_NONE, + TYPE_SAS + }, + { + "J8A3 - SATA CONBINE1", + CONN_SAS_SATA, + NULL, + CONN_NONE, + TYPE_SAS + }, + { + "J8B1 - ME_DBG", + CONN_OTHER, + NULL, + CONN_NONE, + TYPE_OTHER_PORT + }, + { + "J8D1 - VR_DBG", + CONN_OTHER, + NULL, + CONN_NONE, + TYPE_OTHER_PORT + }, + { + "J8E1 - TPM_MODULE", + CONN_OTHER, + NULL, + CONN_NONE, + TYPE_OTHER_PORT + }, + { + "J8F1 - M.2 CONNECTOR", + CONN_OTHER, + NULL, + CONN_NONE, + TYPE_OTHER_PORT + }, + { + "J9A1 - SATA RAID KEY", + CONN_OTHER, + NULL, + CONN_NONE, + TYPE_OTHER_PORT + }, + { + NULL, + CONN_NONE, + "J9A2 - DEBUG 80 PORT", + CONN_OTHER, + TYPE_OTHER_PORT + }, + { + "J9A3 - CPU & PCH XDP", + CONN_OTHER, + NULL, + CONN_NONE, + TYPE_OTHER_PORT + }, + { + NULL, + CONN_NONE, + "J9A5 - USB conn", + CONN_ACCESS_BUS_USB, + TYPE_USB + }, + { + "J9B1 - BMC_DBG", + CONN_OTHER, + NULL, + CONN_NONE, + TYPE_OTHER_PORT + }, + { + NULL, + CONN_NONE, + "J9D1 - USB3.0 TYPE C", + CONN_ACCESS_BUS_USB, + TYPE_USB + }, + { + NULL, + CONN_NONE, + "J9E1 - VGA", + CONN_OTHER, + TYPE_OTHER_PORT + }, + { + NULL, + CONN_NONE, + "JA9G1 - ETH0", + CONN_RJ_45, + TYPE_NETWORK_PORT + }, +}; + void mainboard_silicon_init_params(FSPS_UPD *params) { } @@ -22,6 +145,21 @@ gpio_output(GPP_B20, 0); }
+#if CONFIG(GENERATE_SMBIOS_TABLES) +static int mainboard_smbios_data(struct device *dev, int *handle, unsigned long *current) +{ + int len = 0; + + // add port information + len += smbios_write_type8( + current, handle, + SMBIOS_type8_info, + ARRAY_SIZE(SMBIOS_type8_info) + ); + + return len; +} +#endif
static void tp_oem_smbios_strings(struct device *dev, struct smbios_type11 *t) { @@ -41,6 +179,9 @@ { dev->ops->get_smbios_strings = tp_oem_smbios_strings, read_fru_areas(CONFIG_BMC_KCS_BASE, CONFIG_FRU_DEVICE_ID, 0, &fru_strings); +#if CONFIG(GENERATE_SMBIOS_TABLES) + dev->ops->get_smbios_data = mainboard_smbios_data; +#endif }
static void mainboard_final(void *chip_info)