From patchwork Fri May 19 08:15:11 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: 100165 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp201563qge; Fri, 19 May 2017 01:17:44 -0700 (PDT) X-Received: by 10.99.131.72 with SMTP id h69mr8822716pge.12.1495181864343; Fri, 19 May 2017 01:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495181864; cv=none; d=google.com; s=arc-20160816; b=eN/RUFy0Cf/fdgSgNIA4MyMtX0NoPaNwSPpC75Y7a3AkY5RoVq2AUDyCuEOqSt0v1W MOF1CedV/J74He1nlJLRedNAzGxROlCth80c5OrwPTo5ywFNs3Qsvp7N9CfTNCmi0EsE TzsWl7OxNo6r8QfXWpNioH0AYl4I0FbA0EFzVBysQi5VO2PnyLKEHyjt5+jsymKTsbgf LhVh07qPoGs+9q2rDWn/Z1am1H98Rl9w+fnNrVfiU5cMG4GuXK//dt0o8k8UwQy3Njul SqW/ibN6iW2MXR0gR+POxRe/aK0gzmulimtpUa0mdzBktqqZl2vK0uZXMoW7UlEPT+f/ H+Vg== 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:dkim-signature :arc-authentication-results; bh=JqC+uGr3NfN+X2XaxxLiEOakqIbQ277r4LSXg0e6q0A=; b=SWXMcyegn1NXLFlLHjVB75AAgy8UDteLQCAUdhbH7QJ+RRln8YZ1xXzIwhwV8pqSns fWydm4ELJvvmATHYrecklEzHmUGmccdXXwo94qkxnJL86cBBKN7ozqqERFaes7Jy+eBZ amWJL8+CIlYvdEuVl/lojOVDzNDMKi336UjgxpOSM+dXd3YuZwafga4OS+FAZDUqAYnH JKvW+EBT6wjSh6ZZ+IOF93pqPw+fjuxFtaCFNFGK2kIBoBAozxQyWvGzzYz6m2CKxtPi 5+BmSNj9AJgz9XZW3bjmXBfKV8MGhJ4Ud4v10CCx7r9NokVgNvXewK5ndDsLrLvaInwB qRRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.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; 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 61si7667454plc.226.2017.05.19.01.17.43; Fri, 19 May 2017 01:17:44 -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; 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 S1753962AbdESIR3 (ORCPT + 25 others); Fri, 19 May 2017 04:17:29 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:10336 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752555AbdESIRX (ORCPT ); Fri, 19 May 2017 04:17:23 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v4J8GakB018070; Fri, 19 May 2017 03:16:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1495181796; bh=YzP7B+gKUX+aDHplB4DPk9GbGq/mkjJecEz3w8e0aIA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=HrAtYw82wIZkLDG+uXtny3VK8xD67iikbXINJYErJLok9D/YMS0zn/f3v/Z6JIchi n01E6DTLTOvAQJ/ZMEm+1W9/lzHec0XJdXHsPZFWHbEWNrh3/UnOyGYMRPGkNyjk0v 9kr5bIMbaYVy6/g/RY8l7qJmUWV2D02IOM8kI1dg= Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v4J8Gaaa026876; Fri, 19 May 2017 03:16:36 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Fri, 19 May 2017 03:16:35 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v4J8FfQI009185; Fri, 19 May 2017 03:16:31 -0500 From: Kishon Vijay Abraham I To: Ulf Hansson , Rob Herring , Tony Lindgren CC: , , , , , , Jonathan Corbet , Mark Rutland , Russell King , , Subject: [PATCH 11/41] mmc: host: omap_hsmmc: Add new compatible string to support dra7 Date: Fri, 19 May 2017 13:45:11 +0530 Message-ID: <20170519081541.26753-12-kishon@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170519081541.26753-1-kishon@ti.com> References: <20170519081541.26753-1-kishon@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a new compatible string "ti,dra7-hsmmc" to support dra7 and dra72 controllers. Also create a new controller flag "OMAP_HSMMC_REQUIRE_IODELAY" to specify all controllers that use "ti,dra7-hsmmc" require iodealy configuration to be set. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt | 1 + drivers/mmc/host/omap_hsmmc.c | 10 ++++++++++ include/linux/platform_data/hsmmc-omap.h | 1 + 3 files changed, 12 insertions(+) -- 2.11.0 Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt b/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt index 74166a0d460d..258e25af10f7 100644 --- a/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt +++ b/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt @@ -12,6 +12,7 @@ Required properties: Should be "ti,omap3-hsmmc", for OMAP3 controllers Should be "ti,omap3-pre-es3-hsmmc" for OMAP3 controllers pre ES3.0 Should be "ti,omap4-hsmmc", for OMAP4 controllers + Should be "ti,dra7-hsmmc", for dra7 and dra72 controllers Should be "ti,am33xx-hsmmc", for AM335x controllers - ti,hwmods: Must be "mmc", n is controller instance starting 1 diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 7088a88074a8..8114b8b73491 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -2314,6 +2314,12 @@ static const struct omap_mmc_of_data am33xx_mmc_of_data = { .controller_flags = OMAP_HSMMC_SWAKEUP_MISSING, }; +static const struct omap_mmc_of_data dra7_mmc_of_data = { + .reg_offset = 0x100, + .controller_flags = OMAP_HSMMC_SWAKEUP_MISSING | + OMAP_HSMMC_REQUIRE_IODELAY, +}; + static const struct of_device_id omap_mmc_of_match[] = { { .compatible = "ti,omap2-hsmmc", @@ -2333,6 +2339,10 @@ static const struct of_device_id omap_mmc_of_match[] = { .compatible = "ti,am33xx-hsmmc", .data = &am33xx_mmc_of_data, }, + { + .compatible = "ti,dra7-hsmmc", + .data = &dra7_mmc_of_data, + }, {}, }; MODULE_DEVICE_TABLE(of, omap_mmc_of_match); diff --git a/include/linux/platform_data/hsmmc-omap.h b/include/linux/platform_data/hsmmc-omap.h index 8e981be2e2c2..21832a357654 100644 --- a/include/linux/platform_data/hsmmc-omap.h +++ b/include/linux/platform_data/hsmmc-omap.h @@ -27,6 +27,7 @@ #define OMAP_HSMMC_SUPPORTS_DUAL_VOLT BIT(0) #define OMAP_HSMMC_BROKEN_MULTIBLOCK_READ BIT(1) #define OMAP_HSMMC_SWAKEUP_MISSING BIT(2) +#define OMAP_HSMMC_REQUIRE_IODELAY BIT(3) struct omap_hsmmc_dev_attr { u8 flags;