From patchwork Thu Aug 16 07:16:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10567045 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 ED9AC1575 for ; Thu, 16 Aug 2018 07:17:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3F032AB33 for ; Thu, 16 Aug 2018 07:17:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C830D2AB4E; Thu, 16 Aug 2018 07:17: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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83D5D2AB33 for ; Thu, 16 Aug 2018 07:17:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389267AbeHPKN7 (ORCPT ); Thu, 16 Aug 2018 06:13:59 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:16941 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389123AbeHPKN6 (ORCPT ); Thu, 16 Aug 2018 06:13:58 -0400 Received: from grover.tkatk1.zaq.ne.jp (zaqdadce369.zaq.ne.jp [218.220.227.105]) (authenticated) by conuserg-09.nifty.com with ESMTP id w7G7Gu2G008336; Thu, 16 Aug 2018 16:16:56 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com w7G7Gu2G008336 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1534403817; bh=cqWbMSJb1P4XxVFRT6qSP4vGtzNiD83iCa0jVUY4sRw=; h=From:To:Cc:Subject:Date:From; b=ThA5m6+agO8/OVx/3jcbP6R/LiJhm2b2lxqR6u0sw9MjNAuyXBONKtahojuvlt4BE Udt4c4T5sOjaIs18LRlDEV5KGT7tcSK33CQiY22KnsdUmo/J5QVtHc/1mtW1cCB7LF m7voki08oI61QzbZlSWIQYDGt6fOPvIX8QnX8rgdxdIaPoQQBtCDgHwmfFfs6c8ivO Zq735dbz1IHm2sZa/U7RPVOVluovLzQkc7LIEo/DHMCnvb9xxjlSSUe+mWhcEu58Q9 QKYTUg0RZqfFAiD9BQ4khEyTobPJ9wo/OlHPJoYYsXL+WrxJ3N1kUjH8aYMU8HYCCt E2i8lkAib/XjA== X-Nifty-SrcIP: [218.220.227.105] From: Masahiro Yamada To: linux-mmc@vger.kernel.org, Wolfram Sang Cc: Masami Hiramatsu , Jassi Brar , Ulf Hansson , linux-renesas-soc@vger.kernel.org, Masahiro Yamada Subject: [PATCH v2 0/7] mmc: tmio: refactor TMIO core a bit and add UniPhier SD/eMMC controller support Date: Thu, 16 Aug 2018 16:16:32 +0900 Message-Id: <1534403799-10594-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.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. Masahiro Yamada (7): 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: renesas_sdhi: refactor CLK_CTL bit calculation 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 | 40 +- drivers/mmc/host/tmio_mmc.c | 56 ++ drivers/mmc/host/tmio_mmc.h | 4 +- drivers/mmc/host/tmio_mmc_core.c | 79 +-- drivers/mmc/host/uniphier-sd.c | 695 +++++++++++++++++++++ 9 files changed, 865 insertions(+), 76 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/uniphier-sd.txt create mode 100644 drivers/mmc/host/uniphier-sd.c