From 83f20fc9f732cc9eaca7b70b470a28ed6fad8fa6 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 5 Dec 2022 23:10:29 +0000 Subject: [PATCH] mediatek: mt7623: build mt6577_auxadc driver into kernel Set CONFIG_MT6577_AUXADC=y as otherwise reading temperature of the thermal-zone doesn't work on MT7623 (it does work fine without this driver on MT7622 and MT7986). Fixes: f2ae4e2f8c ("mediatek: clean up platform kernel modules") Signed-off-by: Daniel Golle --- target/linux/mediatek/modules.mk | 2 +- target/linux/mediatek/mt7623/config-5.15 | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/target/linux/mediatek/modules.mk b/target/linux/mediatek/modules.mk index f46a6ad2ffcd..848012372590 100644 --- a/target/linux/mediatek/modules.mk +++ b/target/linux/mediatek/modules.mk @@ -29,7 +29,7 @@ $(eval $(call KernelPackage,btmtkuart)) define KernelPackage/iio-mt6577-auxadc TITLE:=Mediatek AUXADC driver - DEPENDS:=@(TARGET_mediatek_mt7622||TARGET_mediatek_mt7623||TARGET_mediatek_filogic) + DEPENDS:=@(TARGET_mediatek_mt7622||TARGET_mediatek_filogic) KCONFIG:=CONFIG_MEDIATEK_MT6577_AUXADC FILES:= \ $(LINUX_DIR)/drivers/iio/adc/mt6577_auxadc.ko diff --git a/target/linux/mediatek/mt7623/config-5.15 b/target/linux/mediatek/mt7623/config-5.15 index e787539d6df0..898e721df44a 100644 --- a/target/linux/mediatek/mt7623/config-5.15 +++ b/target/linux/mediatek/mt7623/config-5.15 @@ -266,6 +266,7 @@ CONFIG_I2C_BOARDINFO=y CONFIG_I2C_CHARDEV=y CONFIG_I2C_MT65XX=y CONFIG_ICPLUS_PHY=y +CONFIG_IIO=y CONFIG_INITRAMFS_SOURCE="" CONFIG_INPUT=y CONFIG_INPUT_EVDEV=y @@ -319,6 +320,7 @@ CONFIG_MDIO_DEVICE=y CONFIG_MDIO_DEVRES=y CONFIG_MDIO_GPIO=y CONFIG_MEDIATEK_GE_PHY=y +CONFIG_MEDIATEK_MT6577_AUXADC=y CONFIG_MEDIATEK_WATCHDOG=y CONFIG_MEMFD_CREATE=y CONFIG_MEMORY=y -- 2.30.2