summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavi Mistry <rvstry@protonmail.com>2022-02-16 23:03:25 +0000
committerFelix Held <felix-coreboot@felixheld.de>2022-11-07 23:20:08 +0000
commitd92745bb989816f17c714e6db4304dd10d931c85 (patch)
treecd40a064b374ee96a877286f5f2457964afced14
parent67ce1f251a43f06b50cc04f8a4b0dc8d1c8c3619 (diff)
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 <rvstry@protonmail.com> Change-Id: I2b2b98c62f9305c6f4885c2ce3b1444801dcb9d5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62060 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--util/superiotool/fintek.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/superiotool/fintek.c b/util/superiotool/fintek.c
index 2dcb131b04..035ec5f32d 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);
}