c21b625a94032c26917e42f6b45c016242d41c77
[openwrt/staging/svanheule.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 diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c
15 index 97182ffd7f..e61e8cf4b9 100644
16 --- a/drivers/mmc/mtk-sd.c
17 +++ b/drivers/mmc/mtk-sd.c
18 @@ -1761,6 +1761,18 @@ static const struct msdc_compatible mt7620_compat = {
19 .default_pad_dly = true,
20 };
21
22 +static const struct msdc_compatible mt7621_compat = {
23 + .clk_div_bits = 8,
24 + .pad_tune0 = false,
25 + .async_fifo = true,
26 + .data_tune = true,
27 + .busy_check = false,
28 + .stop_clk_fix = false,
29 + .enhance_rx = false,
30 + .builtin_pad_ctrl = true,
31 + .default_pad_dly = true,
32 +};
33 +
34 static const struct msdc_compatible mt7622_compat = {
35 .clk_div_bits = 12,
36 .pad_tune0 = true,
37 @@ -1809,6 +1821,7 @@ static const struct msdc_compatible mt8183_compat = {
38
39 static const struct udevice_id msdc_ids[] = {
40 { .compatible = "mediatek,mt7620-mmc", .data = (ulong)&mt7620_compat },
41 + { .compatible = "mediatek,mt7621-mmc", .data = (ulong)&mt7621_compat },
42 { .compatible = "mediatek,mt7622-mmc", .data = (ulong)&mt7622_compat },
43 { .compatible = "mediatek,mt7623-mmc", .data = (ulong)&mt7623_compat },
44 { .compatible = "mediatek,mt8512-mmc", .data = (ulong)&mt8512_compat },
45 --
46 2.36.1
47