[PATCH v2 12/14] mmc: mediatek: add support for MediaTek MT7621 SoC

Jaehoon Chung jh80.chung at samsung.com
Tue Nov 23 00:41:00 CET 2021


On 11/19/21 10:37 AM, Weijie Gao wrote:
> This patch adds SDXC support for MediaTek MT7621 SoC
> 
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>

Reviewed-by: Jaehoon Chung <jh80.chung at samsung.com>

Best Regards,
Jaehoon Chung

> ---
> v2 changes: none
> ---
>  drivers/mmc/mtk-sd.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c
> index 8599f095bc..1199052a89 100644
> --- a/drivers/mmc/mtk-sd.c
> +++ b/drivers/mmc/mtk-sd.c
> @@ -1746,6 +1746,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,
> @@ -1794,6 +1806,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 },
> 



More information about the U-Boot mailing list