blob: 5a36ab050fc71877a767551f2087cce960bf500b [file] [log] [blame]
developer5d148cb2023-06-02 13:08:11 +08001From b4ad228b3e415f980932a2200d93b56f135e6bc8 Mon Sep 17 00:00:00 2001
2From: Sam Shih <sam.shih@mediatek.com>
3Date: Fri, 2 Jun 2023 13:06:09 +0800
4Subject: [PATCH] [spi-and-storage][999-2300-mtk-sd-add-mt7986-support.patch]
5
6---
7 drivers/mmc/host/mtk-sd.c | 13 +++++++++++++
8 1 file changed, 13 insertions(+)
9
10diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
11index 1254a5650..b25e8567f 100644
developer68be6f42021-05-27 17:51:16 +080012--- a/drivers/mmc/host/mtk-sd.c
13+++ b/drivers/mmc/host/mtk-sd.c
developer5d148cb2023-06-02 13:08:11 +080014@@ -508,6 +508,18 @@ static const struct mtk_mmc_compatible mt7622_compat = {
developer68be6f42021-05-27 17:51:16 +080015 .support_64g = false,
16 };
17
18+static const struct mtk_mmc_compatible mt7986_compat = {
19+ .clk_div_bits = 12,
20+ .hs400_tune = false,
21+ .pad_tune_reg = MSDC_PAD_TUNE0,
22+ .async_fifo = true,
23+ .data_tune = true,
24+ .busy_check = true,
25+ .stop_clk_fix = true,
26+ .enhance_rx = true,
27+ .support_64g = true,
28+};
29+
30 static const struct mtk_mmc_compatible mt8516_compat = {
31 .clk_div_bits = 12,
32 .hs400_tune = false,
developer5d148cb2023-06-02 13:08:11 +080033@@ -537,6 +549,7 @@ static const struct of_device_id msdc_of_ids[] = {
developer68be6f42021-05-27 17:51:16 +080034 { .compatible = "mediatek,mt2701-mmc", .data = &mt2701_compat},
35 { .compatible = "mediatek,mt2712-mmc", .data = &mt2712_compat},
36 { .compatible = "mediatek,mt7622-mmc", .data = &mt7622_compat},
37+ { .compatible = "mediatek,mt7986-mmc", .data = &mt7986_compat},
38 { .compatible = "mediatek,mt8516-mmc", .data = &mt8516_compat},
39 { .compatible = "mediatek,mt7620-mmc", .data = &mt7620_compat},
40 {}
developer5d148cb2023-06-02 13:08:11 +080041--
422.34.1
43