From 9bd601584350f51f112b15a7369f9aa82f1d0919 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Fri, 4 May 2018 09:01:38 +0200 Subject: 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. Change-Id: I56ce7ad1df88638589a577b8a09d5d775557887b Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/26050 Reviewed-by: Felix Held Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/mainboard/hp/compaq_8200_elite_sff/cmos.default | 1 + src/mainboard/hp/compaq_8200_elite_sff/cmos.layout | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mainboard') diff --git a/src/mainboard/hp/compaq_8200_elite_sff/cmos.default b/src/mainboard/hp/compaq_8200_elite_sff/cmos.default index 390d231fb1..1d88415039 100644 --- a/src/mainboard/hp/compaq_8200_elite_sff/cmos.default +++ b/src/mainboard/hp/compaq_8200_elite_sff/cmos.default @@ -4,3 +4,4 @@ power_on_after_fail=Enable nmi=Enable sata_mode=AHCI gfx_uma_size=32M +psu_fan_lvl=3 diff --git a/src/mainboard/hp/compaq_8200_elite_sff/cmos.layout b/src/mainboard/hp/compaq_8200_elite_sff/cmos.layout index e90af85a09..f2d2331e63 100644 --- a/src/mainboard/hp/compaq_8200_elite_sff/cmos.layout +++ b/src/mainboard/hp/compaq_8200_elite_sff/cmos.layout @@ -51,7 +51,9 @@ entries # coreboot config options: console #392 3 r 0 unused 395 4 e 6 debug_level -#399 9 r 0 unused +#399 1 r 0 unused +400 3 h 0 psu_fan_lvl +#403 5 r 0 unused # coreboot config options: southbridge 408 1 e 1 nmi -- cgit v1.2.3