Allow the Apple Hydra Mac I/O I2C controller driver to be built
when compile testing on PowerPC.
Keep the PCI dependency separate so the driver still only builds with
PCI support enabled.
Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
drivers/i2c/busses/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index c2d378e9a1b4..f7d15fa9580e 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -370,7 +370,8 @@ comment "Mac SMBus host controller drivers"
config I2C_HYDRA
tristate "CHRP Apple Hydra Mac I/O I2C interface"
- depends on PCI && PPC_CHRP
+ depends on PCI
+ depends on PPC_CHRP || (PPC && COMPILE_TEST)
select I2C_ALGOBIT
help
This supports the use of the I2C interface in the Apple Hydra Mac
--
2.54.0