From d92745bb989816f17c714e6db4304dd10d931c85 Mon Sep 17 00:00:00 2001 From: Ravi Mistry Date: Wed, 16 Feb 2022 23:03:25 +0000 Subject: util/superiotool/fintek.c: Fix F71808A hardware monitor readouts Fix readouts from the hardware monitor on Fintek F71808A Super I/O. The HWM port is +5 to the base address stored in LDN 0x4 at index 0x60/0x61. Referred to util/superiotool/winbond.c and the Linux kernel driver f71882fg. Tested on a HP 500-319na (Memphis-S / IPM87-MP). Signed-off-by: Ravi Mistry Change-Id: I2b2b98c62f9305c6f4885c2ce3b1444801dcb9d5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62060 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Angel Pons --- util/superiotool/fintek.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util') diff --git a/util/superiotool/fintek.c b/util/superiotool/fintek.c index 2dcb131b040a..035ec5f32db6 100644 --- a/util/superiotool/fintek.c +++ b/util/superiotool/fintek.c @@ -545,6 +545,9 @@ void probe_idregs_fintek(uint16_t port) hwmport = regval(port, 0x60) << 8; hwmport |= regval(port, 0x61); + /* HWM address register = HWM base address + 5. */ + hwmport += 5; + printf("Hardware monitor (0x%04x)\n", hwmport); dump_superio("Fintek-HWM", hwm_table, hwmport, did, LDN_SEL); } -- cgit v1.2.3