]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: mediatek: add support for MediaTek MT7621 SoC
authorWeijie Gao <weijie.gao@mediatek.com>
Fri, 20 May 2022 03:23:26 +0000 (11:23 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 13 Jul 2022 21:03:37 +0000 (23:03 +0200)
This patch adds SDXC support for MediaTek MT7621 SoC

Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
drivers/mmc/mtk-sd.c

index 97182ffd7f58a64895ab696efa0cd2c5269cce70..e61e8cf4b94889bc659476a11e9c3f8667222840 100644 (file)
@@ -1761,6 +1761,18 @@ static const struct msdc_compatible mt7620_compat = {
        .default_pad_dly = true,
 };
 
+static const struct msdc_compatible mt7621_compat = {
+       .clk_div_bits = 8,
+       .pad_tune0 = false,
+       .async_fifo = true,
+       .data_tune = true,
+       .busy_check = false,
+       .stop_clk_fix = false,
+       .enhance_rx = false,
+       .builtin_pad_ctrl = true,
+       .default_pad_dly = true,
+};
+
 static const struct msdc_compatible mt7622_compat = {
        .clk_div_bits = 12,
        .pad_tune0 = true,
@@ -1809,6 +1821,7 @@ static const struct msdc_compatible mt8183_compat = {
 
 static const struct udevice_id msdc_ids[] = {
        { .compatible = "mediatek,mt7620-mmc", .data = (ulong)&mt7620_compat },
+       { .compatible = "mediatek,mt7621-mmc", .data = (ulong)&mt7621_compat },
        { .compatible = "mediatek,mt7622-mmc", .data = (ulong)&mt7622_compat },
        { .compatible = "mediatek,mt7623-mmc", .data = (ulong)&mt7623_compat },
        { .compatible = "mediatek,mt8512-mmc", .data = (ulong)&mt8512_compat },