superio/ite/common: add option for enabling 5 FANs
commit97445f20edf9f0cda0ad184b42eed060095ff860
authorKrystian Hebel <krystian.hebel@3mdeb.com>
Tue, 26 Feb 2019 10:19:58 +0000 (26 11:19 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Sat, 2 Mar 2019 19:32:38 +0000 (2 19:32 +0000)
treeab4788dace2a5a3fa636e56700967aed833ef52e
parent65b514c64551b8e7516c2bd66646ebf6eeec379a
superio/ite/common: add option for enabling 5 FANs

Some ITEs have more than 3 independent FAN controller outputs. As the
initial implementation assumed only 3 outputs some registers are not
consequently numbered. This change adds macros for accessing those
registers.

Additionally some chips have SmartGuardian always enabled, without the
option for turning it off. For these chips bits that were responsible
for ON/OFF control are either reserved or have different meaning.
Another Kconfig option is added to disable ON/OFF functionality on
platforms that do not support it.

Change-Id: Icd60a16b6b5583a3b981bdc220aac472c2a8f40f
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/31616
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Nico Huber <nico.h@gmx.de>
src/superio/ite/common/Kconfig
src/superio/ite/common/env_ctrl.c
src/superio/ite/common/env_ctrl.h
src/superio/ite/common/env_ctrl_chip.h