From patchwork Thu Aug 23 04:44:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10573433 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 10BBC13B8 for ; Thu, 23 Aug 2018 04:45:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 010612BD1F for ; Thu, 23 Aug 2018 04:45:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8DC52BD2C; Thu, 23 Aug 2018 04:45:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 935282BD1F for ; Thu, 23 Aug 2018 04:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=2esaeOBEWtEMvkDD22nc9YSKdRZJj22DBmrl2IHD9wQ=; b=OCE h4LrROWARJAxTUVqKuME/Y+mZeMYTTXn4h82RZhavbh+N3Ac/OU8CbeD/EVD3yhgFa1ZwgAMHx15p I6+94DcTtioQP2AXRWDSBRSGnnTm6+De2Z+NReHwOOfDfTI/cKu6uQ9Tba4Ztdu/UrsSxfpnNNUPo P81/RXDS+hoO1aF+kVe9/iywUjP8Sr7LqnwOXMamST5NNcYZE3O4K4xEkuNoLE4K8CKTm4dn7ZyTt 0uu2Mu2GiAWQeM77ZM3QqMLIRuh2LWby/mqKlpXAU+ANAV2XAQChICS/O5wIjvBSk7dfawkUZFwPD bE4+RPDJTKR1CU1To0iDCTrTvcjBPKw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fshUy-0002WR-M5; Thu, 23 Aug 2018 04:45:32 +0000 Received: from conuserg-09.nifty.com ([210.131.2.76]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fshUv-0002VB-Eo for linux-arm-kernel@lists.infradead.org; Thu, 23 Aug 2018 04:45:31 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id w7N4ilM0021677; Thu, 23 Aug 2018 13:44:47 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com w7N4ilM0021677 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1534999488; bh=/+fo0yOjS0VZxwHuwgyjBTZEbLP8nZAX67NGvuwXT9E=; h=From:To:Cc:Subject:Date:From; b=VZH8v+Gd84SQydllTCWwtPQHKducrd867iPDRU4LKzbLYAY+1Kky1Z6sDrgflUHHl OKqfrJmOhLOFl+u80/LOlnZ/Fw5fBoIQvp5FPxvd8eoFNglozaeQj/MIxbGp4Wv0oF Gh3kvQxQhXRqv7/18Je12AuMMTPaZsl7IPTJA/J6y717aBUWhgrMuTMcXfOKGj1yHZ Pfu0fAIU45w5Dq4z+LkQw466KNqgAkkBdkiGas53ErNnRNEitZCVejJQb9W0FNaY4N /4F1nGYM1xUQe8Jy2USx3bLYA4/OotYDNA/544gIkntBpk0J9c04qyTNo4BNByBHaZ KndccLt62nQ6Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Wolfram Sang , linux-mmc@vger.kernel.org Subject: [PATCH v3 0/6] mmc: tmio: refactor TMIO core a bit and add UniPhier SD/eMMC controller support Date: Thu, 23 Aug 2018 13:44:14 +0900 Message-Id: <1534999460-15111-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180822_214529_834283_F0C768C5 X-CRM114-Status: GOOD ( 11.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Ulf Hansson , Masahiro Yamada , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Jassi Brar , Rob Herring , Masami Hiramatsu , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add UniPhier SD/eMMC controller support. As a preparation, I changed tmio_mmc_set_clock() to a platform hook. The clock rate setting is platform-specific, and UniPhier variants will add another way. I thought it would be better to split this to a hook to avoid a mess. V3 is rebase on top of Linus' tree. I dropped 6/7 because Renesas added more quirks in the current MW. Masahiro Yamada (6): mmc: tmio: replace tmio_mmc_clk_stop() calls with tmio_mmc_set_clock() mmc: tmio: move tmio_mmc_set_clock() to platform hook dt-bindings: mmc: add DT binding for UniPhier SD/eMMC controller mmc: uniphier-sd: add UniPhier SD/eMMC controller driver mmc: renesas_sdhi: merge clk_{start,stop} functions to set_clock mmc: tmio: refactor CLK_CTL bit calculation .../devicetree/bindings/mmc/uniphier-sd.txt | 55 ++ MAINTAINERS | 1 + drivers/mmc/host/Kconfig | 10 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/renesas_sdhi_core.c | 48 +- drivers/mmc/host/tmio_mmc.c | 56 ++ drivers/mmc/host/tmio_mmc.h | 4 +- drivers/mmc/host/tmio_mmc_core.c | 92 +-- drivers/mmc/host/uniphier-sd.c | 693 +++++++++++++++++++++ 9 files changed, 871 insertions(+), 89 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/uniphier-sd.txt create mode 100644 drivers/mmc/host/uniphier-sd.c Tested-by: Wolfram Sang