mediatek: clean up platform kernel modules

Remove kmod-sdhci-mtk as the mtk-sd driver is built-in anyway for the
relevant subtargets in order to support mounting rootfs from eMMC or
SD card.

Add kmod-iio-mt6577-auxadc to support reading the raw values from the
auxadc unit used as in-SoC thermal sensor. This driver was previously
built-in, but as thermal itself works well without it there is no use
for it in every day use of a device. Build the module to still allow
access to the raw values for those who need it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle
2022-10-19 23:03:07 +01:00
parent e57ca876cc
commit f2ae4e2f8c
3 changed files with 8 additions and 15 deletions

View File

@@ -27,16 +27,13 @@ endef
$(eval $(call KernelPackage,btmtkuart))
define KernelPackage/sdhci-mtk
SUBMENU:=Other modules
TITLE:=Mediatek SDHCI driver
DEPENDS:=@TARGET_mediatek_mt7622 +kmod-sdhci
KCONFIG:=CONFIG_MMC_MTK
define KernelPackage/iio-mt6577-auxadc
TITLE:=Mediatek AUXADC driver
DEPENDS:=@(TARGET_mediatek_mt7622||TARGET_mediatek_mt7623||TARGET_mediatek_filogic)
KCONFIG:=CONFIG_MEDIATEK_MT6577_AUXADC
FILES:= \
$(LINUX_DIR)/drivers/mmc/host/mtk-sd.ko
AUTOLOAD:=$(call AutoProbe,mtk-sd,1)
$(LINUX_DIR)/drivers/iio/adc/mt6577_auxadc.ko
AUTOLOAD:=$(call AutoProbe,mt6577_auxadc)
$(call AddDepends/iio)
endef
$(eval $(call KernelPackage,sdhci-mtk))
$(eval $(call KernelPackage,iio-mt6577-auxadc))