From be34afad6fe2660919f488402cfcf685fdd47300 Mon Sep 17 00:00:00 2001 From: Tim Chu Date: Fri, 13 Nov 2020 03:04:54 -0800 Subject: mb/ocp/deltalake: Override SMBIOS type 4 cpu voltage Override SMBIOS type 4 cpu voltage. For Delta Lake, 1.6V is expected. Tested=Execute "dmidecode -t 4" to check if cpu voltage is correct. Signed-off-by: Tim Chu Change-Id: I0ecbec8fb3dc79b8c3f3581d6193aade01bcd68e Reviewed-on: https://review.coreboot.org/c/coreboot/+/47562 Tested-by: build bot (Jenkins) Reviewed-by: Jonathan Zhang --- src/mainboard/ocp/deltalake/ramstage.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/mainboard/ocp/deltalake/ramstage.c') diff --git a/src/mainboard/ocp/deltalake/ramstage.c b/src/mainboard/ocp/deltalake/ramstage.c index 9d570900b1..52c55b89b0 100644 --- a/src/mainboard/ocp/deltalake/ramstage.c +++ b/src/mainboard/ocp/deltalake/ramstage.c @@ -59,6 +59,18 @@ const char *smbios_mainboard_location_in_chassis(void) return slot_id_str; } +/* + * Override SMBIOS type 4 cpu voltage. + * BIT7 will set to 1 after value return. If BIT7 is set to 1, the remaining seven + * bits of this field are set to contain the processor's current voltage times 10. + */ +unsigned int smbios_cpu_get_voltage(void) +{ + /* This will return 1.6V which is expected value for Delta Lake + 10h = (1.6 * 10) = 16 */ + return 0x10; +} + /* System Slot Socket, Stack, Type and Data bus width Information */ typedef struct { u8 stack; -- cgit v1.2.3