[openwrt/openwrt] ramips: modules: add Mediatek MMC driver package
LEDE Commits
lede-commits at lists.infradead.org
Thu Jul 11 09:57:57 PDT 2024
nick pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/53f23d1613195e225b4eb1456cdeb56884723ca1
commit 53f23d1613195e225b4eb1456cdeb56884723ca1
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Wed Jul 10 00:16:36 2024 +0800
ramips: modules: add Mediatek MMC driver package
This is the upstream implementation of the MTK SD/SDIO/MMC card
reader driver. It is an alternative solution for the downstream
driver package "kmod-sdhci-mt7620".
Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
Co-authored-by: John Thomson <git at johnthomson.fastmail.com.au>
---
target/linux/ramips/modules.mk | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/target/linux/ramips/modules.mk b/target/linux/ramips/modules.mk
index f32b82aef8..ced479dc93 100644
--- a/target/linux/ramips/modules.mk
+++ b/target/linux/ramips/modules.mk
@@ -4,6 +4,27 @@
OTHER_MENU:=Other modules
+define KernelPackage/mmc-mtk
+ SUBMENU:=Other modules
+ TITLE:=MediaTek SD/MMC Card Interface support
+ DEPENDS:=@(TARGET_ramips_mt7620||TARGET_ramips_mt76x8||TARGET_ramips_mt7621) +kmod-mmc
+ KCONFIG:= \
+ CONFIG_MMC \
+ CONFIG_MMC_MTK \
+ CONFIG_MMC_CQHCI
+ FILES:= \
+ $(LINUX_DIR)/drivers/mmc/host/cqhci.ko \
+ $(LINUX_DIR)/drivers/mmc/host/mtk-sd.ko
+ AUTOLOAD:=$(call AutoProbe,cqhci mtk-sd,1)
+endef
+
+define KernelPackage/mmc-mtk/description
+ MediaTek(R) Secure digital and Multimedia card Interface.
+ This is needed if support for any SD/SDIO/MMC devices is required.
+endef
+
+$(eval $(call KernelPackage,mmc-mtk))
+
define KernelPackage/pwm-mediatek-ramips
SUBMENU:=Other modules
TITLE:=MT7628 PWM
More information about the lede-commits
mailing list