From patchwork Wed Apr 25 12:09:36 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: 134257 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp779432lji; Wed, 25 Apr 2018 05:10:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx48txE7TXB/rFSyxVyksieyM4+XhQd7dpnmLD/iNjGiSoICwBht8NDcNOpsY1nnDZ0ltT3WN X-Received: by 10.101.88.68 with SMTP id s4mr23663702pgr.232.1524658241777; Wed, 25 Apr 2018 05:10:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524658241; cv=none; d=google.com; s=arc-20160816; b=D764SnU2Ho5x+G2k+NbLUPssEqJpqb4HwLnH0w5S3MGtIO4EWxAtu0KcRdW53miPJv CJRv+zDhCaIC1caLPdeiIiPoDNdvqWsttXToIFH5zq/I2uQMFLsdbn/TbKT1Mm8jnoss jaqwgKh6TdcPqMsIlqbQm0xALqKS/dygV/jDzRTFgJMoKUCg1sa10QaAINzhD/3JmV3R IZuglErrr1vl9OV4ywL+DWOvkuJDjhCYFqYoxlYMccSQNenB8iqjqO3nDfUO4vwLS+p4 0f7WbShEH2l9eml6FVzOox31uG9kNJrTrDAr9u4PNAuvpXQfwWbzfM9ni7zBrk4EqV0I 6wiw== 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=WnOPpS5SCBkAnWw0uFtkCjGs/gBBNc576A/UhaBcdbY=; b=EgrRSJ6VIjRBPvFA0OA/SBaa633t+qkpPY+wl1TPyEgybTygXElGMlWD7bnnJeX9uX WniIKdh++pndQBUQOLrZcsqxGGqHp4CT4qpf1Dxm113g7k3tSRSCXhUX7IxoDrD9kVDE ZyniltlleXxzopAI3GXFPQQAEL5Pt2nZaoxR7Qx+hqr5y+iaGkVE+LC5kHDLzoB/Shxb cqm95NldYH6JCJpW7IobB+iriLcxB693TkMAxMHgkGQeF0Do3TMuPYcaEXl0Qe7MXzbp 4fCUQYONFVexNlStBga3OfUdhaOFHeE3petZml8PD6r80HFSJu12BUqXw2PN6ItKxBr/ BPOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PYZIhiNu; 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 z7si2240540pgv.228.2018.04.25.05.10.41; Wed, 25 Apr 2018 05:10:41 -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.s=ti-com-17Q1 header.b=PYZIhiNu; 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 S1753452AbeDYMKj (ORCPT + 29 others); Wed, 25 Apr 2018 08:10:39 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:63466 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753297AbeDYMK3 (ORCPT ); Wed, 25 Apr 2018 08:10:29 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3PCANsl018927; Wed, 25 Apr 2018 07:10:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1524658223; bh=1ATxya0nbjA84+i41a3o4f/VzXwUSDWkOquhoeWh29Q=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=PYZIhiNuDkY766etC4ZDmsCx4tMxlYrl25CeEn7MkxCW3JwKyNTbAJLUQBObrhIbK pgi9tH0Pxoxh3Y58zaRqm2eig4c/+9MqGqyFNH8WZeJsvh+BfkI7DF9VWIzqtSHwjB l+KVqtwE7BI1kNVglg2jUKxHAC+wzR59OQVZ9bVM= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3PCAN93016762; Wed, 25 Apr 2018 07:10:23 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 25 Apr 2018 07:10:23 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 25 Apr 2018 07:10:23 -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 w3PC9hhY009970; Wed, 25 Apr 2018 07:10:20 -0500 From: Kishon Vijay Abraham I To: Ulf Hansson , Adrian Hunter CC: , Rob Herring , Mark Rutland , , , , , Tony Lindgren Subject: [PATCH v4 11/12] mmc: sdhci-omap: Add support for MMC/SD controller in k2g SoC Date: Wed, 25 Apr 2018 17:39:36 +0530 Message-ID: <20180425120937.29867-12-kishon@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425120937.29867-1-kishon@ti.com> References: <20180425120937.29867-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Acked-by: Tony Lindgren --- drivers/mmc/host/sdhci-omap.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.17.0 diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index b2c54940d032..c1a19e8d0a08 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c @@ -720,6 +720,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, @@ -727,6 +731,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);