superio/nuvoton/npcd378: Add PSU fan control
Implement method to access the SuperIO's harware monitor (HWM) IO space.
Set the PSU fan using a new CMOS option psu_fan_lvl. Add the CMOS option
to all board that use NPCD378. In case no CMOS is set use the default
fan level 3.
The HWM space can be written to at any time, but the SuperIO has to be
notified that a write is ongoing. After clearing the write-lock bit all
changes are applied at once.
Tested on HP Compaq 8200 SFF.
Signed-off-by: Patrick Rudolph <email@example.com>
Reviewed-by: Felix Held <firstname.lastname@example.org>
Reviewed-by: Paul Menzel <email@example.com>
Tested-by: build bot (Jenkins) <firstname.lastname@example.org>
4 files changed