From 4330b961c472e359475bd17d56088c16e4a175b8 Mon Sep 17 00:00:00 2001 From: JingleHsuWiwynn Date: Thu, 28 Jan 2021 09:13:42 +0800 Subject: arch/x86/smbios: Add Number Of Power Cords field to be overriden For SMBIOS type 3, add function to override number of power cords Tested=Exectute dmidecode -t 3 to verify. Signed-off-by: JingleHsuWiwynn Change-Id: I7dee3a944a49ffcfdc2f4408d92a17aa39761bb0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50015 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/arch/x86/smbios_defaults.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/arch/x86/smbios_defaults.c') diff --git a/src/arch/x86/smbios_defaults.c b/src/arch/x86/smbios_defaults.c index 4d8883f3cd..3d26bbbd85 100644 --- a/src/arch/x86/smbios_defaults.c +++ b/src/arch/x86/smbios_defaults.c @@ -143,3 +143,8 @@ __weak const char *smbios_processor_serial_number(void) { return ""; } + +__weak u8 smbios_chassis_power_cords(void) +{ + return 1; +} -- cgit v1.2.3