[PATCH 1/2] soc: mediatek: Allow MTK_INFRACFG to be built as module
From: Justin Yeh
Date: Fri May 29 2026 - 06:22:59 EST
Change MTK_INFRACFG from bool to tristate to support building it as
a loadable kernel module (.ko) instead of being built into the kernel.
This is required for DDK (Driver Development Kit) module build, where
mtk-infracfg needs to be loaded dynamically along with other SoC
infrastructure modules.
Signed-off-by: Justin Yeh <justin.yeh@xxxxxxxxxxxx>
---
drivers/soc/mediatek/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig
index d7293977f06e..d28b0817ce51 100644
--- a/drivers/soc/mediatek/Kconfig
+++ b/drivers/soc/mediatek/Kconfig
@@ -38,7 +38,7 @@ config MTK_DVFSRC
best achievable performance-per-watt.
config MTK_INFRACFG
- bool "MediaTek INFRACFG Support"
+ tristate "MediaTek INFRACFG Support"
select REGMAP
help
Say yes here to add support for the MediaTek INFRACFG controller. The
--
2.45.2