8e8aaf36f9c4ae65213c5d2f6ad6d07f4f403c41
[openwrt/staging/mans0n.git] /
1 From 4339ec44313e85dd1f6d3d708dd2e594855ce25d Mon Sep 17 00:00:00 2001
2 From: Weijie Gao <weijie.gao@mediatek.com>
3 Date: Fri, 20 May 2022 11:23:26 +0800
4 Subject: [PATCH 16/25] mmc: mediatek: add support for MediaTek MT7621 SoC
5
6 This patch adds SDXC support for MediaTek MT7621 SoC
7
8 Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
9 Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
10 ---
11 drivers/mmc/mtk-sd.c | 13 +++++++++++++
12 1 file changed, 13 insertions(+)
13
14 --- a/drivers/mmc/mtk-sd.c
15 +++ b/drivers/mmc/mtk-sd.c
16 @@ -1761,6 +1761,18 @@ static const struct msdc_compatible mt76
17 .default_pad_dly = true,
18 };
19
20 +static const struct msdc_compatible mt7621_compat = {
21 + .clk_div_bits = 8,
22 + .pad_tune0 = false,
23 + .async_fifo = true,
24 + .data_tune = true,
25 + .busy_check = false,
26 + .stop_clk_fix = false,
27 + .enhance_rx = false,
28 + .builtin_pad_ctrl = true,
29 + .default_pad_dly = true,
30 +};
31 +
32 static const struct msdc_compatible mt7622_compat = {
33 .clk_div_bits = 12,
34 .pad_tune0 = true,
35 @@ -1809,6 +1821,7 @@ static const struct msdc_compatible mt81
36
37 static const struct udevice_id msdc_ids[] = {
38 { .compatible = "mediatek,mt7620-mmc", .data = (ulong)&mt7620_compat },
39 + { .compatible = "mediatek,mt7621-mmc", .data = (ulong)&mt7621_compat },
40 { .compatible = "mediatek,mt7622-mmc", .data = (ulong)&mt7622_compat },
41 { .compatible = "mediatek,mt7623-mmc", .data = (ulong)&mt7623_compat },
42 { .compatible = "mediatek,mt8512-mmc", .data = (ulong)&mt8512_compat },