summaryrefslogtreecommitdiff
path: root/src/superio/ite/it8786e
diff options
context:
space:
mode:
authorMichał Żygowski <michal.zygowski@3mdeb.com>2024-07-15 12:09:49 +0200
committerMichał Żygowski <michal.zygowski@3mdeb.com>2024-07-19 14:35:38 +0000
commit1236b1c603c9ff020fe3d963b5b84085fdee6837 (patch)
tree38d83dff66ce62baa122e6c5f66d2668f469eafa /src/superio/ite/it8786e
parentd1efb66be6fb79d2e22395d03dff269448b636b9 (diff)
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>
Diffstat (limited to 'src/superio/ite/it8786e')
-rw-r--r--src/superio/ite/it8786e/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/superio/ite/it8786e/Kconfig b/src/superio/ite/it8786e/Kconfig
index 216d6f5bf8..ab4a92fcd6 100644
--- a/src/superio/ite/it8786e/Kconfig
+++ b/src/superio/ite/it8786e/Kconfig
@@ -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