developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 1 | From b4ad228b3e415f980932a2200d93b56f135e6bc8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Sam Shih <sam.shih@mediatek.com> |
| 3 | Date: Fri, 2 Jun 2023 13:06:09 +0800 |
| 4 | Subject: [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 | |
| 10 | diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c |
| 11 | index 1254a5650..b25e8567f 100644 |
developer | 68be6f4 | 2021-05-27 17:51:16 +0800 | [diff] [blame] | 12 | --- a/drivers/mmc/host/mtk-sd.c |
| 13 | +++ b/drivers/mmc/host/mtk-sd.c |
developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 14 | @@ -508,6 +508,18 @@ static const struct mtk_mmc_compatible mt7622_compat = { |
developer | 68be6f4 | 2021-05-27 17:51:16 +0800 | [diff] [blame] | 15 | .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, |
developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 33 | @@ -537,6 +549,7 @@ static const struct of_device_id msdc_of_ids[] = { |
developer | 68be6f4 | 2021-05-27 17:51:16 +0800 | [diff] [blame] | 34 | { .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 | {} |
developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 41 | -- |
| 42 | 2.34.1 |
| 43 | |