diff options
author | Fabien Parent <fparent@baylibre.com> | 2019-03-24 16:46:33 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-04-23 17:57:25 -0400 |
commit | a93326681dd712f0c2f6883a6d30f8d765e1278b (patch) | |
tree | a29017f4550f6a1e12e8476f633b3dcf6f531a58 /drivers/mmc/mtk-sd.c | |
parent | ba077e5f74500ec81e6ccdda4cba4078e1f3495b (diff) |
mmc: mtk-sd: add support for MT8516
Add config for handling MT8516 SoC.
Signed-off-by: Fabien Parent <fparent@baylibre.com>
Acked-by: Ryder Lee <ryder.lee@mediatek.com>
Diffstat (limited to 'drivers/mmc/mtk-sd.c')
-rw-r--r-- | drivers/mmc/mtk-sd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index eed98b769c..b44686fbc9 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c @@ -1381,8 +1381,18 @@ static const struct msdc_compatible mt7623_compat = { .enhance_rx = false }; +static const struct msdc_compatible mt8516_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 }, {} }; |