From patchwork Mon Feb 5 12:50:27 2018 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: 126856 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1942602ljc; Mon, 5 Feb 2018 04:52:24 -0800 (PST) X-Google-Smtp-Source: AH8x225nCKuLsgxhOyjdh68ViGvzgKaiIRlGd8r0m1M9WQei5+Rw11FCuga8bO4ArvQCLBa/ii9d X-Received: by 2002:a17:902:3103:: with SMTP id w3-v6mr14177971plb.3.1517835144247; Mon, 05 Feb 2018 04:52:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517835144; cv=none; d=google.com; s=arc-20160816; b=L6o57WLX6aFUa6pZF9VFngZzFTJ8XkXve8Nt0wvnzlJ63DS1f+gaxthTorYYLnSxBc tGZOyEMN/eJe/bmCN1Szkl9vMxLyO1jiD/QOSyRr09h8lv1X6Ps23Qmzao5jERhzW0gu J+AZTWgHjCTzy0iSavvpGAEiqlZvpVqZl6aoUpVM61U1eq6BfUrAAk0ac+JEvVg2XqWU 8eH1OMrgCB2t1fMDdMeFkS6mAWx/MKRLp88gbOrq9B0MJ/eV8RuuTuxP2ofRpmYezkww nVdw9cTy88Ro29w0MQa4H4Yp0ENVA+QolJb5ih/LFf2bqbRLwkACG1AvOk8bInbK2awC N9pQ== 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=y4eCksbveeevR1Zxw290292ghZmaBpl7VSpCjjnwh1A=; b=D16BXjLHW6oKsGAnhpPQXflo8L44FurwOyMYP/eNfba88VGQ2juNXa9UxdJF30NWv4 q2EA2Vr9LNgGitDHOOs9nFz6G8SmXLK7mi+Rih8FF3KdIr9mV0gCogFf3soXdlxC7xNw dHCSqpdX+F4u5Ao/f8Z+RNkjF1fGPb8siwnowoKqvJLpqkt/LGI34YmRRIByo2yGR38r Ztc/9fntBJQHsDMDB1FnEj/AfvAEQTFoFQcsj/OHNLmcECiIH7nCqkT259qA3DQKI+md F6iZoAbBjYWn/DtnAd3el7sDaeUj42wp4Vmtfbu7pgi407pbElI0HUZn9q95ZDs79GXD rg0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=GcPf4h2t; 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; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) 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 d7si3622715pgf.470.2018.02.05.04.52.24; Mon, 05 Feb 2018 04:52:24 -0800 (PST) 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=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=GcPf4h2t; 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; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753221AbeBEMwV (ORCPT + 6 others); Mon, 5 Feb 2018 07:52:21 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:11999 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753137AbeBEMv5 (ORCPT ); Mon, 5 Feb 2018 07:51:57 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w15CpVbi023525; Mon, 5 Feb 2018 06:51:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1517835091; bh=KQhdrXKTyj9CoZKY5RkGJFLzrHLL0usW21WquQOUQcI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GcPf4h2tzQynYd1r8aXSBUGN2MCGRHq26o0IG8cVzK68y7HVXoO20uDgW4GWM/HJ7 ZMtl2MTFJp8ZggIYK9nQowWLKqqmgx/hRebQDgGkJDF6n1vFY3bAqdPe1kSj4WCn5H 6YAuqLskYY1HjmHscijFiU/8LbIuw/Qi5iEmVJSQ= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w15CpV2n007830; Mon, 5 Feb 2018 06:51:31 -0600 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 5 Feb 2018 06:51:31 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Mon, 5 Feb 2018 06:51:31 -0600 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 w15CoaGj023963; Mon, 5 Feb 2018 06:51:28 -0600 From: Kishon Vijay Abraham I To: Ulf Hansson , Tony Lindgren , Adrian Hunter CC: Rob Herring , Mark Rutland , Russell King , Kishon Vijay Abraham I , , , , , Subject: [PATCH v2 14/16] mmc: sdhci-omap: Add support for MMC/SD controller in k2g SoC Date: Mon, 5 Feb 2018 18:20:27 +0530 Message-ID: <20180205125029.21570-15-kishon@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180205125029.21570-1-kishon@ti.com> References: <20180205125029.21570-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Add support for the new compatible added specifically to support k2g's MMC/SD controller. Signed-off-by: Kishon Vijay Abraham I Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-omap.c | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index db487b77fbcc..863f6736c2fe 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c @@ -719,6 +719,10 @@ static const struct sdhci_pltfm_data sdhci_omap_pdata = { .ops = &sdhci_omap_ops, }; +static const struct sdhci_omap_data k2g_data = { + .offset = 0x200, +}; + static const struct sdhci_omap_data dra7_data = { .offset = 0x200, .flags = SDHCI_OMAP_REQUIRE_IODELAY, @@ -726,6 +730,7 @@ static const struct sdhci_omap_data dra7_data = { static const struct of_device_id omap_sdhci_match[] = { { .compatible = "ti,dra7-sdhci", .data = &dra7_data }, + { .compatible = "ti,k2g-sdhci", .data = &k2g_data }, {}, }; MODULE_DEVICE_TABLE(of, omap_sdhci_match); @@ -846,6 +851,7 @@ static int sdhci_omap_probe(struct platform_device *pdev) int ret; u32 offset; struct device *dev = &pdev->dev; + struct device_node *node = dev->of_node; struct sdhci_host *host; struct sdhci_pltfm_host *pltfm_host; struct sdhci_omap_host *omap_host; @@ -872,6 +878,9 @@ static int sdhci_omap_probe(struct platform_device *pdev) return PTR_ERR(host); } + if (of_device_is_compatible(node, "ti,k2g-sdhci")) + host->quirks2 |= SDHCI_QUIRK2_NO_1_8_V; + pltfm_host = sdhci_priv(host); omap_host = sdhci_pltfm_priv(pltfm_host); omap_host->host = host;