mb/scaleway/tagada: Move override of SMBIOS_ENCLOSURE_TYPE
Change-Id: Iaefeccadb82106667a5108a2c77e538474ae18c2
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42138
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
diff --git a/src/mainboard/scaleway/tagada/Kconfig b/src/mainboard/scaleway/tagada/Kconfig
index 34473a8..cbbb6ae 100644
--- a/src/mainboard/scaleway/tagada/Kconfig
+++ b/src/mainboard/scaleway/tagada/Kconfig
@@ -24,8 +24,4 @@
help
Location of BMC SERIAL information.
-config SMBIOS_ENCLOSURE_TYPE
- hex
- default 0x19 # SMBIOS_ENCLOSURE_MULTI_SYSTEM_CHASSIS
-
endif # BOARD_SCALEWAY_TAGADA
diff --git a/src/mainboard/scaleway/tagada/ramstage.c b/src/mainboard/scaleway/tagada/ramstage.c
index 5cad2ba..6d5d3ff 100644
--- a/src/mainboard/scaleway/tagada/ramstage.c
+++ b/src/mainboard/scaleway/tagada/ramstage.c
@@ -72,6 +72,11 @@
return SMBIOS_BOARD_TYPE_SERVER_BLADE;
}
+smbios_enclosure_type smbios_mainboard_enclosure_type(void)
+{
+ return SMBIOS_ENCLOSURE_MULTI_SYSTEM_CHASSIS;
+}
+
/* Add any mainboard specific information for dimm */
void mainboard_add_dimm_info(
struct memory_info *mem_info,