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: 144316 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1729266ljj; Thu, 16 Aug 2018 00:17:33 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyHOq6/4ZUmp9UmWY6qcctgNmGmidzgfVd2ig1P9k58gnHELGd+tTYd5parLbt5nio9o4TG X-Received: by 2002:a17:902:d807:: with SMTP id a7-v6mr28185787plz.3.1534403853385; Thu, 16 Aug 2018 00:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534403853; cv=none; d=google.com; s=arc-20160816; b=TRt+cKAdqXO01oSPsmqO/9etbk/xJQE0SgmJ1qv9sdBFGmaGvjOuM0tV0MW+7ASUvl gkpilp0KGFU8GyHAJ5Tc3p+Vw1iJyACpyWR1LExCvbJUr3j21hvgeJpI/hRTdCbgbXwS h/iCm4X+EL06NM1YUBJr9eUu/LXN72e5nJoIZ/owgYbPdrfPHrKrzF6WQnzx/pOBOi3Y m3GPkjOXRbl7VnasywraWpWpe/fZshAHHv5S+Eek3C4/UnmGxa63bggDtTsIxzLD1cfD FcsnlryuOA2L1eVa7U1B0qGi8bLBCdLn9rXlUgrNy7weARLW0ZkVcwwzmUcLHA09Ka1a sC+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=cqWbMSJb1P4XxVFRT6qSP4vGtzNiD83iCa0jVUY4sRw=; b=Lxxk5RV6ikK8cCVLER9A3t9IhaeKxXpqkx8AmMLS6lbhgCZgVoualkDztiLrNY7Gs7 fU37HKDxhd01F85GaD6FaNxAJRh9LKyTijXYcrukQpeemBvyT2hllcQTDxyynF+SPanP jOWGnruy4ALWtlVMV6wGfMS/pFU1xSBavjH6A6iwKbN+ujb8LI3/t7i4AVy0L9aI1EC6 q1T2TuykllHrnP6ZaQCwPxy89rvLKSFSS4KZVgn9ft2TiJHEztw9+vEA881ytRunnjte v8Tl1KmhopuDfzr+cAVmaXLyZuZWyV89MG1Y8JyuWUoFLNWj+cMW267C8BUXeTLSDlQQ U7bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ThA5m6+a; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-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 f12-v6si24878828pgm.601.2018.08.16.00.17.33; Thu, 16 Aug 2018 00:17:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ThA5m6+a; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389267AbeHPKN7 (ORCPT + 5 others); 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 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 -- 2.7.4