[PATCH] gpio: sodaville: allow COMPILE_TEST builds

From: Rosen Penev

Date: Fri May 08 2026 - 20:33:54 EST


The Intel Sodaville GPIO driver uses PCI/MMIO and generic GPIO helpers, and
builds outside X86. Move its Kconfig entry out of the X86-only port-I/O
menu and allow it to be selected with COMPILE_TEST.

Tested with:
make LLVM=1 ARCH=loongarch drivers/gpio/gpio-sodaville.o

Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
---
drivers/gpio/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index f8e34b16fd99..9e1ed0f451b9 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -1908,16 +1908,16 @@ config GPIO_RDC321X
Support for the RDC R321x SoC GPIOs over southbridge
PCI configuration space.

+endmenu
+
config GPIO_SODAVILLE
bool "Intel Sodaville GPIO support"
- depends on X86 && OF
+ depends on (X86 || COMPILE_TEST) && OF
select GPIO_GENERIC
select GENERIC_IRQ_CHIP
help
Say Y here to support Intel Sodaville GPIO.

-endmenu
-
menu "SPI GPIO expanders"
depends on SPI_MASTER

--
2.54.0