mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
45 lines
1.5 KiB
Diff
45 lines
1.5 KiB
Diff
|
From 1a7963e9843f6f1e4b02a30926d20b314c03e4df Mon Sep 17 00:00:00 2001
|
||
|
From: Sam Shih <sam.shih@mediatek.com>
|
||
|
Date: Sat, 25 Jun 2022 02:10:13 +0800
|
||
|
Subject: [PATCH] mmc: mediatek: add support for MT7986 SoC
|
||
|
|
||
|
Adding mt7986 own characteristics and of_device_id to have support
|
||
|
of MT7986 SoC.
|
||
|
|
||
|
Signed-off-by: Sam Shih <sam.shih@mediatek.com>
|
||
|
Change-Id: I07cf8406cbe8c1a7114b304f35fc3e689e512e5a
|
||
|
---
|
||
|
drivers/mmc/host/mtk-sd.c | 14 ++++++++++++++
|
||
|
1 file changed, 14 insertions(+)
|
||
|
|
||
|
--- a/drivers/mmc/host/mtk-sd.c
|
||
|
+++ b/drivers/mmc/host/mtk-sd.c
|
||
|
@@ -540,6 +540,19 @@ static const struct mtk_mmc_compatible m
|
||
|
.support_64g = false,
|
||
|
};
|
||
|
|
||
|
+static const struct mtk_mmc_compatible mt7986_compat = {
|
||
|
+ .clk_div_bits = 12,
|
||
|
+ .recheck_sdio_irq = true,
|
||
|
+ .hs400_tune = false,
|
||
|
+ .pad_tune_reg = MSDC_PAD_TUNE0,
|
||
|
+ .async_fifo = true,
|
||
|
+ .data_tune = true,
|
||
|
+ .busy_check = true,
|
||
|
+ .stop_clk_fix = true,
|
||
|
+ .enhance_rx = true,
|
||
|
+ .support_64g = true,
|
||
|
+};
|
||
|
+
|
||
|
static const struct mtk_mmc_compatible mt8516_compat = {
|
||
|
.clk_div_bits = 12,
|
||
|
.recheck_sdio_irq = true,
|
||
|
@@ -584,6 +597,7 @@ static const struct of_device_id msdc_of
|
||
|
{ .compatible = "mediatek,mt2701-mmc", .data = &mt2701_compat},
|
||
|
{ .compatible = "mediatek,mt2712-mmc", .data = &mt2712_compat},
|
||
|
{ .compatible = "mediatek,mt7622-mmc", .data = &mt7622_compat},
|
||
|
+ { .compatible = "mediatek,mt7986-mmc", .data = &mt7986_compat},
|
||
|
{ .compatible = "mediatek,mt8516-mmc", .data = &mt8516_compat},
|
||
|
{ .compatible = "mediatek,mt7620-mmc", .data = &mt7620_compat},
|
||
|
{ .compatible = "mediatek,mt6779-mmc", .data = &mt6779_compat},
|