summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi, Jincheng <jincheng.li@intel.com>2022-11-16 15:51:09 +0800
committerLean Sheng Tan <sheng.tan@9elements.com>2024-07-26 11:05:10 +0000
commit2c9a12b588faba7504eac2cbcc4f533317e2dd2c (patch)
tree2d1c2cb8c5b926d310a89e2f22d3888964acc97a
parent61d61af6ea305c56ee189c68d35cc04e99987f22 (diff)
mb/intel/beechnutcity_crb: Update SMBIOS info for type 0,1,2,3
Update wake-up type, mainboard feature flags and enclosure type. All other info are used from src/lib/smbios_defaults.c Change-Id: I8a7d4958171df121e2cd3acb3a71554c695d64ab Signed-off-by: Li, Jincheng <jincheng.li@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83327 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
-rw-r--r--src/mainboard/intel/beechnutcity_crb/ramstage.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mainboard/intel/beechnutcity_crb/ramstage.c b/src/mainboard/intel/beechnutcity_crb/ramstage.c
index 37d7d731dd..25d12e07c7 100644
--- a/src/mainboard/intel/beechnutcity_crb/ramstage.c
+++ b/src/mainboard/intel/beechnutcity_crb/ramstage.c
@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <smbios.h>
#include <soc/dimm_slot.h>
#include <soc/ramstage.h>
@@ -8,6 +9,24 @@ void mainboard_silicon_init_params(FSPS_UPD *params)
}
+/*
+ * TODO: SMBIOS info in src/lib/smbios_defaults.c could be overridden based on needs
+ */
+smbios_wakeup_type smbios_system_wakeup_type(void)
+{
+ return SMBIOS_WAKEUP_TYPE_POWER_SWITCH;
+}
+
+u8 smbios_mainboard_feature_flags(void)
+{
+ return SMBIOS_FEATURE_FLAGS_HOSTING_BOARD | SMBIOS_FEATURE_FLAGS_REPLACEABLE;
+}
+
+smbios_enclosure_type smbios_mainboard_enclosure_type(void)
+{
+ return SMBIOS_ENCLOSURE_RACK_MOUNT_CHASSIS;
+}
+
void smbios_fill_dimm_locator(const struct dimm_info *dimm, struct smbios_type17 *t)
{
int size;