[openwrt/openwrt] mediatek: mt7623: build mt6577_auxadc driver into kernel

LEDE Commits lede-commits at lists.infradead.org
Mon Dec 5 15:15:12 PST 2022


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/83f20fc9f732cc9eaca7b70b470a28ed6fad8fa6

commit 83f20fc9f732cc9eaca7b70b470a28ed6fad8fa6
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Mon Dec 5 23:10:29 2022 +0000

    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 <daniel at makrotopia.org>
---
 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 f46a6ad2ff..8480123725 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 e787539d6d..898e721df4 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




More information about the lede-commits mailing list