superio/ite: Enable common driver for GPIO and LED configuration
Enables the driver for ITE SIOs supporting the GPIO register layout (confirmed with datasheets for the modified ITE SIO Kconfigs, SIOs with unavailable datasheets are unmodified). Other ITE SIOs may select it with SUPERIO_ITE_COMMON_GPIO_PRE_RAM and must then provide the number of GPIO sets specific to a chip via SUPERIO_ITE_COMMON_NUM_GPIO_SETS. Change-Id: I0868ff3e9022b135c21f4c1a6746d6440b8f0798 Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83468 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
d1efb66be6
commit
1236b1c603
@ -3,9 +3,18 @@
|
||||
config SUPERIO_ITE_IT8613E
|
||||
bool
|
||||
select SUPERIO_ITE_COMMON_PRE_RAM
|
||||
select SUPERIO_ITE_COMMON_GPIO_PRE_RAM
|
||||
select SUPERIO_ITE_COMMON_GPIO_LED_FREQ_5BIT
|
||||
select SUPERIO_ITE_ENV_CTRL
|
||||
select SUPERIO_ITE_ENV_CTRL_PWM_FREQ2
|
||||
select SUPERIO_ITE_ENV_CTRL_8BIT_PWM
|
||||
select SUPERIO_ITE_ENV_CTRL_5FANS
|
||||
select SUPERIO_ITE_ENV_CTRL_NO_ONOFF
|
||||
select SUPERIO_ITE_ENV_CTRL_EXT_ANY_TMPIN
|
||||
|
||||
if SUPERIO_ITE_IT8613E
|
||||
|
||||
config SUPERIO_ITE_COMMON_NUM_GPIO_SETS
|
||||
default 6
|
||||
|
||||
endif
|
||||
|
@ -3,8 +3,17 @@
|
||||
config SUPERIO_ITE_IT8659E
|
||||
bool
|
||||
select SUPERIO_ITE_COMMON_PRE_RAM
|
||||
select SUPERIO_ITE_COMMON_GPIO_PRE_RAM
|
||||
select SUPERIO_ITE_ENV_CTRL
|
||||
select SUPERIO_ITE_ENV_CTRL_PWM_FREQ2
|
||||
select SUPERIO_ITE_ENV_CTRL_7BIT_SLOPE_REG
|
||||
select SUPERIO_ITE_ENV_CTRL_8BIT_PWM
|
||||
select SUPERIO_ITE_ENV_CTRL_EXT_ANY_TMPIN
|
||||
|
||||
|
||||
if SUPERIO_ITE_IT8659E
|
||||
|
||||
config SUPERIO_ITE_COMMON_NUM_GPIO_SETS
|
||||
default 6
|
||||
|
||||
endif
|
||||
|
@ -3,3 +3,11 @@
|
||||
config SUPERIO_ITE_IT8712F
|
||||
bool
|
||||
select SUPERIO_ITE_COMMON_PRE_RAM
|
||||
select SUPERIO_ITE_COMMON_GPIO_PRE_RAM
|
||||
|
||||
if SUPERIO_ITE_IT8712F
|
||||
|
||||
config SUPERIO_ITE_COMMON_NUM_GPIO_SETS
|
||||
default 5
|
||||
|
||||
endif
|
||||
|
@ -3,6 +3,14 @@
|
||||
config SUPERIO_ITE_IT8718F
|
||||
bool
|
||||
select SUPERIO_ITE_COMMON_PRE_RAM
|
||||
select SUPERIO_ITE_COMMON_GPIO_PRE_RAM
|
||||
select SUPERIO_ITE_ENV_CTRL
|
||||
select SUPERIO_ITE_ENV_CTRL_FAN16_CONFIG
|
||||
select SUPERIO_ITE_ENV_CTRL_PWM_FREQ2
|
||||
|
||||
if SUPERIO_ITE_IT8718F
|
||||
|
||||
config SUPERIO_ITE_COMMON_NUM_GPIO_SETS
|
||||
default 6
|
||||
|
||||
endif
|
||||
|
@ -3,6 +3,14 @@
|
||||
config SUPERIO_ITE_IT8720F
|
||||
bool
|
||||
select SUPERIO_ITE_COMMON_PRE_RAM
|
||||
select SUPERIO_ITE_COMMON_GPIO_PRE_RAM
|
||||
select SUPERIO_ITE_ENV_CTRL
|
||||
select SUPERIO_ITE_ENV_CTRL_FAN16_CONFIG
|
||||
select SUPERIO_ITE_ENV_CTRL_PWM_FREQ2
|
||||
|
||||
if SUPERIO_ITE_IT8720F
|
||||
|
||||
config SUPERIO_ITE_COMMON_NUM_GPIO_SETS
|
||||
default 8
|
||||
|
||||
endif
|
||||
|
@ -3,7 +3,15 @@
|
||||
config SUPERIO_ITE_IT8721F
|
||||
bool
|
||||
select SUPERIO_ITE_COMMON_PRE_RAM
|
||||
select SUPERIO_ITE_COMMON_GPIO_PRE_RAM
|
||||
select SUPERIO_ITE_ENV_CTRL
|
||||
select SUPERIO_ITE_ENV_CTRL_FAN16_CONFIG
|
||||
select SUPERIO_ITE_ENV_CTRL_PWM_FREQ2
|
||||
select SUPERIO_ITE_ENV_CTRL_EXT_ANY_TMPIN
|
||||
|
||||
if SUPERIO_ITE_IT8721F
|
||||
|
||||
config SUPERIO_ITE_COMMON_NUM_GPIO_SETS
|
||||
default 8
|
||||
|
||||
endif
|
||||
|
@ -3,6 +3,7 @@
|
||||
config SUPERIO_ITE_IT8728F
|
||||
bool
|
||||
select SUPERIO_ITE_COMMON_PRE_RAM
|
||||
select SUPERIO_ITE_COMMON_GPIO_PRE_RAM
|
||||
select SUPERIO_ITE_ENV_CTRL
|
||||
select SUPERIO_ITE_ENV_CTRL_PWM_FREQ2
|
||||
select SUPERIO_ITE_ENV_CTRL_FAN16_CONFIG
|
||||
@ -11,3 +12,10 @@ config SUPERIO_ITE_IT8728F
|
||||
select SUPERIO_ITE_ENV_CTRL_7BIT_SLOPE_REG
|
||||
select SUPERIO_ITE_ENV_CTRL_EXT_ANY_TMPIN
|
||||
select SUPERIO_ITE_ENV_CTRL_FAN_VECTOR
|
||||
|
||||
if SUPERIO_ITE_IT8728F
|
||||
|
||||
config SUPERIO_ITE_COMMON_NUM_GPIO_SETS
|
||||
default 8
|
||||
|
||||
endif
|
||||
|
@ -3,6 +3,7 @@
|
||||
config SUPERIO_ITE_IT8772F
|
||||
bool
|
||||
select SUPERIO_ITE_COMMON_PRE_RAM
|
||||
select SUPERIO_ITE_COMMON_GPIO_PRE_RAM
|
||||
select SUPERIO_ITE_ENV_CTRL
|
||||
select SUPERIO_ITE_ENV_CTRL_7BIT_SLOPE_REG
|
||||
select SUPERIO_ITE_ENV_CTRL_8BIT_PWM
|
||||
@ -11,3 +12,10 @@ config SUPERIO_ITE_IT8772F
|
||||
select SUPERIO_ITE_ENV_CTRL_FAN_VECTOR_RANGED
|
||||
select SUPERIO_ITE_ENV_CTRL_NO_FULLSPEED_SETTING
|
||||
select SUPERIO_ITE_ENV_CTRL_PWM_FREQ2
|
||||
|
||||
if SUPERIO_ITE_IT8772F
|
||||
|
||||
config SUPERIO_ITE_COMMON_NUM_GPIO_SETS
|
||||
default 6
|
||||
|
||||
endif
|
||||
|
@ -3,6 +3,14 @@
|
||||
config SUPERIO_ITE_IT8783EF
|
||||
bool
|
||||
select SUPERIO_ITE_COMMON_PRE_RAM
|
||||
select SUPERIO_ITE_COMMON_GPIO_PRE_RAM
|
||||
select SUPERIO_ITE_ENV_CTRL
|
||||
select SUPERIO_ITE_ENV_CTRL_FAN16_CONFIG
|
||||
select SUPERIO_ITE_ENV_CTRL_PWM_FREQ2
|
||||
|
||||
if SUPERIO_ITE_IT8783EF
|
||||
|
||||
config SUPERIO_ITE_COMMON_NUM_GPIO_SETS
|
||||
default 6
|
||||
|
||||
endif
|
||||
|
@ -3,8 +3,16 @@
|
||||
config SUPERIO_ITE_IT8784E
|
||||
bool
|
||||
select SUPERIO_ITE_COMMON_PRE_RAM
|
||||
select SUPERIO_ITE_COMMON_GPIO_PRE_RAM
|
||||
select SUPERIO_ITE_ENV_CTRL
|
||||
select SUPERIO_ITE_ENV_CTRL_PWM_FREQ2
|
||||
select SUPERIO_ITE_ENV_CTRL_8BIT_PWM
|
||||
select SUPERIO_ITE_ENV_CTRL_7BIT_SLOPE_REG
|
||||
select SUPERIO_ITE_ENV_CTRL_EXT_ANY_TMPIN
|
||||
|
||||
if SUPERIO_ITE_IT8784E
|
||||
|
||||
config SUPERIO_ITE_COMMON_NUM_GPIO_SETS
|
||||
default 10
|
||||
|
||||
endif
|
||||
|
@ -3,8 +3,16 @@
|
||||
config SUPERIO_ITE_IT8786E
|
||||
bool
|
||||
select SUPERIO_ITE_COMMON_PRE_RAM
|
||||
select SUPERIO_ITE_COMMON_GPIO_PRE_RAM
|
||||
select SUPERIO_ITE_ENV_CTRL
|
||||
select SUPERIO_ITE_ENV_CTRL_PWM_FREQ2
|
||||
select SUPERIO_ITE_ENV_CTRL_8BIT_PWM
|
||||
select SUPERIO_ITE_ENV_CTRL_7BIT_SLOPE_REG
|
||||
select SUPERIO_ITE_ENV_CTRL_EXT_ANY_TMPIN
|
||||
|
||||
if SUPERIO_ITE_IT8786E
|
||||
|
||||
config SUPERIO_ITE_COMMON_NUM_GPIO_SETS
|
||||
default 10
|
||||
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user