lkml.org 
[lkml]   [2020]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v6 1/4] mmc: mediatek: add MT6779 MMC driver support
    Date
    MT6779 add cqhci support, so need to add new code
    to support it.

    Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
    ---
    drivers/mmc/host/mtk-sd.c | 13 +++++++++++++
    1 file changed, 13 insertions(+)

    diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
    index b221c02..8ada675 100644
    --- a/drivers/mmc/host/mtk-sd.c
    +++ b/drivers/mmc/host/mtk-sd.c
    @@ -538,6 +538,18 @@ struct msdc_host {
    .use_internal_cd = true,
    };

    +static const struct mtk_mmc_compatible mt6779_compat = {
    + .clk_div_bits = 12,
    + .hs400_tune = false,
    + .pad_tune_reg = MSDC_PAD_TUNE0,
    + .async_fifo = true,
    + .data_tune = true,
    + .busy_check = true,
    + .stop_clk_fix = true,
    + .enhance_rx = true,
    + .support_64g = true,
    +};
    +
    static const struct of_device_id msdc_of_ids[] = {
    { .compatible = "mediatek,mt8135-mmc", .data = &mt8135_compat},
    { .compatible = "mediatek,mt8173-mmc", .data = &mt8173_compat},
    @@ -547,6 +559,7 @@ struct msdc_host {
    { .compatible = "mediatek,mt7622-mmc", .data = &mt7622_compat},
    { .compatible = "mediatek,mt8516-mmc", .data = &mt8516_compat},
    { .compatible = "mediatek,mt7620-mmc", .data = &mt7620_compat},
    + { .compatible = "mediatek,mt6779-mmc", .data = &mt6779_compat},
    {}
    };
    MODULE_DEVICE_TABLE(of, msdc_of_ids);
    --
    1.9.1
    \
     
     \ /
      Last update: 2020-06-09 03:19    [W:3.447 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site