Received: by 10.223.185.116 with SMTP id b49csp2281444wrg; Sun, 4 Mar 2018 23:23:02 -0800 (PST) X-Google-Smtp-Source: AG47ELtw0tSjs5kTFRXEv8yupOSZgrgNE5bAoBl87XjkmDqmnb6cGvHRqtSGcLYBeJITf8C4uus0 X-Received: by 2002:a17:902:a985:: with SMTP id bh5-v6mr6553622plb.35.1520234582614; Sun, 04 Mar 2018 23:23:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520234582; cv=none; d=google.com; s=arc-20160816; b=PQIO611G1m2u31VPvhGfu7EFVEHYPEfJI+4+6kFixJFHNYcwzllhs0B01ai6uHIqha 5sjA6qCgWrtqblAFTI+gNWr0Z6gmTDWUQN1T2x5aAZJpuhtXinqR+n3ZB0f/1QEFClFU 1LD0WhlzJGbusrOaf2rEoz4HrXJCjWFa/Laouh1dq/71UqEdccTPCjVC1k58Y7RUTyXQ mDXWQuki5f0/OSSRI1ivRxuVAA2qL/ejZ2u+yDZk9wE7CZK9y8aUlZkr0yAShx/BCyxz I0LOkPLRiudlMXzfP4yWCCTaCpJKLfNHYGD+hc3RplaWKT8SQp/VDvu0CuKTDWV9nyMO aizg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=UGkCXYIqSr9utyQbMh1NkQ1LZ/9ZbllCvkQESuOUFl4=; b=1FfOeqsCyLID/FzWPKscaoiT/unBWJIdtFduFhd6u3AJzzFmA0hcp3OtLRSSYDrvkz Nt0TXtpu4sncirjemX8waPRurTsWEdIQS2Q32otRkM1WK/FJ5dbctf77o1uI7pARXRbk Z9/auni1oX1XtTyjvstWRzQwaA+KCXV7UORLyiPAgiZ2eKFbS2OfXgape7GdzPLCoSVu H4fQwMBC5yyp15rJezQ+/DAiG+dmVI4sCe9ASmZjhNmHlc0ZRCH8OAOVz023XmPXeZR7 KlBoCyGR8pZnuU5e7FYa1HXMwUsq6ApWivg2rqe1LdW/G5t5oIa9IrJsjA8t+PmRWrYE TXnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si7987657pgc.792.2018.03.04.23.22.48; Sun, 04 Mar 2018 23:23:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933081AbeCEHDn (ORCPT + 99 others); Mon, 5 Mar 2018 02:03:43 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:53030 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S933055AbeCEHDh (ORCPT ); Mon, 5 Mar 2018 02:03:37 -0500 X-UUID: a9089132f93147bc81af95f6f409196d-20180305 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 754535017; Mon, 05 Mar 2018 15:03:27 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 5 Mar 2018 15:03:26 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 5 Mar 2018 15:03:26 +0800 From: To: , , CC: , , , , Sean Wang , Chaotian Jing Subject: [PATCH 2/2] mmc: mediatek: add support for MT7622 SoC Date: Mon, 5 Mar 2018 15:03:20 +0800 Message-ID: <83a3ee9471cc7312b9cc43bcf692939e90af34ba.1520232933.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <6cb1d6d4ee40a61f7b33aed1711753342590d0dd.1520232933.git.sean.wang@mediatek.com> References: <6cb1d6d4ee40a61f7b33aed1711753342590d0dd.1520232933.git.sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Just applying the existing logic and adding its own characteristics into the space pointed by an extra entry of struct of_device_id to have support of MT7622 SoC. Signed-off-by: Chaotian Jing Signed-off-by: Sean Wang Tested-by: Jumin Li --- drivers/mmc/host/mtk-sd.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 6457a7d..cb274e8 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/drivers/mmc/host/mtk-sd.c @@ -438,11 +438,23 @@ static const struct mtk_mmc_compatible mt2712_compat = { .enhance_rx = true, }; +static const struct mtk_mmc_compatible mt7622_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, +}; + static const struct of_device_id msdc_of_ids[] = { { .compatible = "mediatek,mt8135-mmc", .data = &mt8135_compat}, { .compatible = "mediatek,mt8173-mmc", .data = &mt8173_compat}, { .compatible = "mediatek,mt2701-mmc", .data = &mt2701_compat}, { .compatible = "mediatek,mt2712-mmc", .data = &mt2712_compat}, + { .compatible = "mediatek,mt7622-mmc", .data = &mt7622_compat}, {} }; MODULE_DEVICE_TABLE(of, msdc_of_ids); -- 2.7.4