Skip to content

Commit cbf7ff8

Browse files
mellanoxbmcdvhart
authored andcommitted
platform/mellanox: Add new ODM system types to mlx-platform
Add new ODM system types, matched according to DMI_BOARD_NAME. The supported ODM Ids are: VMOD0001, VMOD0002, VMOD0003, VMOD0004, VMOD0005. Patch does not introduce new systems, but allows to ODM companies to set DMI_BOARD_VENDOR and DMI_PRODUCT_NAME on their own. It assumes that ODM company can't change DMI_BOARD_NAME. Signed-off-by: Vadim Pasternak <[email protected]> Signed-off-by: Darren Hart (VMware) <[email protected]>
1 parent 4b5e32d commit cbf7ff8

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

drivers/platform/x86/mlx-platform.c

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,36 @@ static const struct dmi_system_id mlxplat_dmi_table[] __initconst = {
844844
DMI_MATCH(DMI_PRODUCT_NAME, "SN34"),
845845
},
846846
},
847+
{
848+
.callback = mlxplat_dmi_default_matched,
849+
.matches = {
850+
DMI_MATCH(DMI_BOARD_NAME, "VMOD0001"),
851+
},
852+
},
853+
{
854+
.callback = mlxplat_dmi_msn21xx_matched,
855+
.matches = {
856+
DMI_MATCH(DMI_BOARD_NAME, "VMOD0002"),
857+
},
858+
},
859+
{
860+
.callback = mlxplat_dmi_msn274x_matched,
861+
.matches = {
862+
DMI_MATCH(DMI_BOARD_NAME, "VMOD0003"),
863+
},
864+
},
865+
{
866+
.callback = mlxplat_dmi_msn201x_matched,
867+
.matches = {
868+
DMI_MATCH(DMI_BOARD_NAME, "VMOD0004"),
869+
},
870+
},
871+
{
872+
.callback = mlxplat_dmi_qmb7xx_matched,
873+
.matches = {
874+
DMI_MATCH(DMI_BOARD_NAME, "VMOD0005"),
875+
},
876+
},
847877
{ }
848878
};
849879

0 commit comments

Comments
 (0)