summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2018-05-04 09:01:38 +0200
committerPatrick Rudolph <siro@das-labor.org>2018-06-01 11:57:25 +0000
commit9bd601584350f51f112b15a7369f9aa82f1d0919 (patch)
treeee45fbcba3707110073cb721f01b440cd9b9abe1 /src/mainboard
parent2ad7ea07b82f99ce9ff751774143e6ebbf02090c (diff)
downloadcoreboot-9bd601584350f51f112b15a7369f9aa82f1d0919.tar.xz
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 <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/26050 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/hp/compaq_8200_elite_sff/cmos.default1
-rw-r--r--src/mainboard/hp/compaq_8200_elite_sff/cmos.layout4
2 files changed, 4 insertions, 1 deletions
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