Patch Set 2:

please have a look at my two comments here https://review.coreboot.org/c/coreboot/+/21032/9/src/superio/fintek/f81803a/superio.c
I didn't review this version of the patch yet, since it's still marked as WIP.

John's code is the base of my code, and this code is board specific at the moment. When I started, his code allowed only enabling serial port and programming the port (not the IRQ). I did not touch his code, as a cursory inspection revealed that it should work (not tested yet). Instead, I concentrated on fan control, as padmelon fans are controlled by this SIO. I have a board with AMI BIOS on it, and verified that it does not program fan control, instead it relies on strapping to set both fans at 40% at power on (and the speed never changes).
There was no CPU temperature reading (TSI), only temperature from external sensor. Voltages were being measured (though I did not check accuracy), as well as fan speed. All of that enabled by default, with almost no programming (I did found about 4 registers with values that were not power on default).

As I do have experience controlling fans using SIO HWM (work at Intel), I decided this would be a useful addition to the code. I could have added other functionality, but it did not look useful under coreboot context.

I have not yet tested the code (awaiting information on SIO connector for programming, which seems to be absent), reason why it's marked as WIP.

View Change

To view, visit change 31374. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1d9a79f681be795dbd07fd0f0f179b06915e07ab
Gerrit-Change-Number: 31374
Gerrit-PatchSet: 2
Gerrit-Owner: Richard Spiegel <richard.spiegel@silverbackltd.com>
Gerrit-Reviewer: Felix Held <felix-coreboot@felixheld.de>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd@gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth@google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Richard Spiegel <richard.spiegel@silverbackltd.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Comment-Date: Wed, 13 Feb 2019 14:35:44 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment