[U-Boot] mmc: mtk-sd: Add MT8183 SoC support
diff mbox series

Message ID 20190812182658.12542-1-fparent@baylibre.com
State Accepted
Delegated to: Tom Rini
Headers show
Series
  • [U-Boot] mmc: mtk-sd: Add MT8183 SoC support
Related show

Commit Message

Fabien Parent Aug. 12, 2019, 6:26 p.m. UTC
Add support for the MT8183 in the MediaTek MMC driver.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
 drivers/mmc/mtk-sd.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Tom Rini Aug. 21, 2019, 12:44 p.m. UTC | #1
On Mon, Aug 12, 2019 at 08:26:58PM +0200, Fabien Parent wrote:

> Add support for the MT8183 in the MediaTek MMC driver.
> 
> Signed-off-by: Fabien Parent <fparent@baylibre.com>

Applied to u-boot/master, thanks!

Patch
diff mbox series

diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c
index 780d3069eb..220bc09164 100644
--- a/drivers/mmc/mtk-sd.c
+++ b/drivers/mmc/mtk-sd.c
@@ -1391,9 +1391,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 },
 	{}
 };