From e34e178ca3f31064e9c4cced4243524d08579007 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Thu, 29 Sep 2016 12:33:01 +0200 Subject: sio/ite/common: Add generic environment-controller driver The environment-controller entity is shared by many ITE super-i/o chips. There are some differences between the chips, though. To cover that, the super-i/o chip should select Kconfig options of this driver accordingly. The current implementation isn't exhaustive: It covers only those parts that are connected on boards I could test, plus those that are currently used by the IT8772F. The latter could be ported to use this driver if somebody minds to test it. Change-Id: I7a40f677f667d103ce1d09a3e468915729067803 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/17284 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/superio/ite/common/Kconfig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/superio/ite/common/Kconfig') diff --git a/src/superio/ite/common/Kconfig b/src/superio/ite/common/Kconfig index 165944b7e2..162b7f1545 100644 --- a/src/superio/ite/common/Kconfig +++ b/src/superio/ite/common/Kconfig @@ -3,6 +3,7 @@ ## ## Copyright (C) 2009 Ronald G. Minnich ## Copyright (C) 2014 Edward O'Callaghan +## Copyright (C) 2016 secunet Security Networks AG ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -18,3 +19,26 @@ # romstage. config SUPERIO_ITE_COMMON_ROMSTAGE bool + +# Generic ITE environment controller driver +config SUPERIO_ITE_ENV_CTRL + bool + +if SUPERIO_ITE_ENV_CTRL + +config SUPERIO_ITE_ENV_CTRL_FAN16_CONFIG + bool + help + Enable extended, 16-bit wide tacho counters. + +config SUPERIO_ITE_ENV_CTRL_8BIT_PWM + bool + help + PWM duty cycles are set in 8-bit registers (instead of 7 bit). + +config SUPERIO_ITE_ENV_CTRL_PWM_FREQ2 + bool + help + The second FAN controller has a separate frequency setting. + +endif -- cgit v1.2.3