]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mmc: mtk-sd: Add MT8183 SoC support
authorFabien Parent <fparent@baylibre.com>
Mon, 12 Aug 2019 18:26:58 +0000 (20:26 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 20 Aug 2019 16:20:32 +0000 (12:20 -0400)
Add support for the MT8183 in the MediaTek MMC driver.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
drivers/mmc/mtk-sd.c

index 49085090c8243d826c284a59bc45eec8a0146ceb..f555357af21362f3541bb860ad67bc517b6e0a53 100644 (file)
@@ -1393,9 +1393,19 @@ static const struct msdc_compatible mt8516_compat = {
        .stop_clk_fix = true,
 };
 
+static const struct msdc_compatible mt8183_compat = {
+       .clk_div_bits = 12,
+       .pad_tune0 = true,
+       .async_fifo = true,
+       .data_tune = true,
+       .busy_check = true,
+       .stop_clk_fix = true,
+};
+
 static const struct udevice_id msdc_ids[] = {
        { .compatible = "mediatek,mt7623-mmc", .data = (ulong)&mt7623_compat },
        { .compatible = "mediatek,mt8516-mmc", .data = (ulong)&mt8516_compat },
+       { .compatible = "mediatek,mt8183-mmc", .data = (ulong)&mt8183_compat },
        {}
 };