From patchwork Mon Aug 7 16:01:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 109577 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1785436qge; Mon, 7 Aug 2017 09:02:54 -0700 (PDT) X-Received: by 10.98.10.144 with SMTP id 16mr1037527pfk.321.1502121774666; Mon, 07 Aug 2017 09:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502121774; cv=none; d=google.com; s=arc-20160816; b=hn4fEpvA1oVvwlw++N/bL12P23TCJ9R63tQd0PEjBHBz39ZlRL/CjhFgTnPz9kMHA9 tARg+DyfT5mIlIHr2Jv0lzMjqpwWbgevR+HX4XIxIPCaXp80k1egbOnrcGk3YUU3lTt2 jr4MRfS1cZ0ufL+Cg7IxKJZAn5zyEK61WQcMBWn0N0pCJlApDVwe5I/PcPZO7IbJ8vte /WVEMEhOn4g6qIfGyiaEHCL6HIKL3u3MtgfB+OrsIdkjhUmt6gqXuJ/RUOtXG3or6/TK /Xy3it95rtTIO0CsZ2hS+UK5akZOp8dJRpifzGQtwLL81RRsxKalFMZQke0B1QOWYIRq FcSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature:arc-authentication-results; bh=oa2dpc2BA5hMhffhRUxDbE0OoEkF1uL6vEsA0+IE5CM=; b=rSMO5s5xn2i0634i4rv0sH60+VOy6DAcnzMMOL8Dw2T6Jgxaxwe4ja6gxwjrhnqUUi Y+eJVUvE80uMdaE3ZTVok212OvTudT+0RLPsp+jXBslZdCrI0a4DKKlKCEIGPay9emdI xkAKdMKgRZmTUHbsV8m7sXOfK+kj/qzVXMBnDqsr09xab8uVRDSFRheeKQqY76HenmEm P0ycLdneIuu3kFEt0J93E2emXyCi5ziaARa6sVHbV6yWus+jldmNeqRnvWZT1jEsXwfs k/sD4XMX2FJnPu52g1pKxHpFNyuX2AaCIRMUWql0OVYtK+MLR/Ur/j1OiZPbAf6kIq4v MRwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.b=k2Xiueod; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v18si1214608pgb.915.2017.08.07.09.02.54; Mon, 07 Aug 2017 09:02:54 -0700 (PDT) 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; dkim=pass header.i=@ti.com header.b=k2Xiueod; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752100AbdHGQCw (ORCPT + 25 others); Mon, 7 Aug 2017 12:02:52 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:38810 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751963AbdHGQCu (ORCPT ); Mon, 7 Aug 2017 12:02:50 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v77G1sdx015878; Mon, 7 Aug 2017 11:01:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1502121714; bh=aZ78jH/yPbJSxspNSsB+4Enpo3JK6EMjUG2K31ZDPBE=; h=From:To:CC:Subject:Date; b=k2XiueodFujtwEV8rdj/kQ1jNnsAYbd6aUw8nx3VVmLU07m7tHhtWKbDrKEHCymTf tP6VYq95/zTq3txlVC2oZ88r2XMlbl6BTp23ukGooxA7FUYFUZE8KCRzzKAPBHMTtD 9Cfsv7UAbqQB5SsDLbfIPRsaTHjcET7B4ija96rI= Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v77G1nTu007352; Mon, 7 Aug 2017 11:01:49 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Mon, 7 Aug 2017 11:01:49 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v77G1jGq023497; Mon, 7 Aug 2017 11:01:46 -0500 From: Kishon Vijay Abraham I To: Ulf Hansson , Tony Lindgren , Rob Herring , Adrian Hunter CC: , , , , , Subject: [RFC PATCH 0/7] mmc: Add OMAP SDHCI driver Date: Mon, 7 Aug 2017 21:31:35 +0530 Message-ID: <20170807160142.12134-1-kishon@ti.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the first step in deprecating omap_hsmmc driver completely and moving to sdhci-omap driver which uses the sdhci library. This series adds 3 new quirks to sdhci library in order to support MMC in OMAP. *) to avoid CRC stripping in MMC_RSP_136 *) to indicate controller supports ADMA2 *) to indicate broken POWER_CONTROL (POWER_CONTROL in TI's SOC controls IO voltage instead of Vdd). Apart from the above mentioned quirks, sdhci-omap has it's own callbacks to set_clock (clock divider programming is different from generic sdhci) , set_bus_width, set_bus_mode and platform_send_init_74_clocks. These callback functions are implemented based on omap_hsmmc driver. The sdhci-omap driver supports only the high speed mode and UHS/HS200 mode will be added in a later series. It has been tested only in boards having DRA7 SoCs like dra7-evm, dra72-evm, am571x-idk, am572x-idk, am57xx-evm. (Tested only eMMC and SD. SDIO support will be added later). The plan is to fully convert DRA7 SoC to use SDHCI driver and then convert other legacy platforms to use SDHCI. dts patches will be sent as a separate series. I've also pushed the entire series along with dependent dt patches @ https://github.com/kishon/linux-wip.git sdhci_omap_v1 (in case someone wants to test) Kishon Vijay Abraham I (7): mmc: sdhci: Add quirk to indicate no CRC stripping in MMC_RSP_136 mmc: sdhci: Add quirk to indicate controller supports ADMA2 mmc: sdhci: Add callback to set bus mode mmc: sdhci: Add quirk to indicate broken POWER_CONTROL dt-bindings: ti-omap-hsmmc: Document new compatible for sdhci omap mmc: sdhci-omap: Add OMAP SDHCI driver MAINTAINERS: Add TI OMAP SDHCI Maintainer .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 1 + MAINTAINERS | 6 + drivers/mmc/host/Kconfig | 12 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-omap.c | 593 +++++++++++++++++++++ drivers/mmc/host/sdhci.c | 39 +- drivers/mmc/host/sdhci.h | 7 + 7 files changed, 650 insertions(+), 9 deletions(-) create mode 100644 drivers/mmc/host/sdhci-omap.c -- 2.11.0