mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
f2ae4e2f8c
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>
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
define KernelPackage/ata-ahci-mtk
|
|
TITLE:=Mediatek AHCI Serial ATA support
|
|
KCONFIG:=CONFIG_AHCI_MTK
|
|
FILES:= \
|
|
$(LINUX_DIR)/drivers/ata/ahci_mtk.ko \
|
|
$(LINUX_DIR)/drivers/ata/libahci_platform.ko
|
|
AUTOLOAD:=$(call AutoLoad,40,libahci libahci_platform ahci_mtk,1)
|
|
$(call AddDepends/ata)
|
|
DEPENDS+=@(TARGET_mediatek_mt7622||TARGET_mediatek_mt7623)
|
|
endef
|
|
|
|
define KernelPackage/ata-ahci-mtk/description
|
|
Mediatek AHCI Serial ATA host controllers
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,ata-ahci-mtk))
|
|
|
|
define KernelPackage/btmtkuart
|
|
SUBMENU:=Other modules
|
|
TITLE:=MediaTek HCI UART driver
|
|
DEPENDS:=@TARGET_mediatek_mt7622 +kmod-bluetooth +mt7622bt-firmware
|
|
KCONFIG:=CONFIG_BT_MTKUART
|
|
FILES:= \
|
|
$(LINUX_DIR)/drivers/bluetooth/btmtkuart.ko
|
|
AUTOLOAD:=$(call AutoProbe,btmtkuart)
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,btmtkuart))
|
|
|
|
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/iio/adc/mt6577_auxadc.ko
|
|
AUTOLOAD:=$(call AutoProbe,mt6577_auxadc)
|
|
$(call AddDepends/iio)
|
|
endef
|
|
$(eval $(call KernelPackage,iio-mt6577-auxadc))
|