From patchwork Fri Apr 27 11:47:20 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: 134591 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp617844lji; Fri, 27 Apr 2018 04:48:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq7bRUbEXPbMrHRNJv9jglgWiyFo3ahRPOIgXSnonTRvLjVBH8u4vjg8KPCvZwBG3rPiP9y X-Received: by 2002:a63:2c12:: with SMTP id s18-v6mr1892693pgs.427.1524829697373; Fri, 27 Apr 2018 04:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524829697; cv=none; d=google.com; s=arc-20160816; b=divX63+VBh7gnT8xJqMcHZhMZ2TJT1Gs+vBM7pH27K8iKKDX83nIc+SJRmZmU6fIBy eOFQOFtoh73nEorTGdJWAPnc8eYRfmT6R+nDQ/7U+9ETK9DZu7bv7CSUoyKidlXN/OGn n/WTzhCv5HTJq/quJVROd5UtVjxGTDBSZl58dDyPzjKBQDIOTLBJPqfTCd8MWo6CffG1 jj3LOPTE6kF4DqA9zAJOMfmaN70uc3HlAl+uX7apTkd93Zk2nEbMaigGjjkZK/baASiu o/CsCegn3Ld0U868rD5GvK5YsUX19rmQUvumPmyC2KKOeqEmhRF6k3keroVtYan+EZem pIqw== 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=uLe2ms712Rb2nRfj0JFxo3k8Y9dvhpMAa0xLgoxvJY8=; b=Gfq48gjTyK/q2VpGXyll5rik6anc/QxWqgd7cF0+JwWY8NtDJwJo5MccRTdsBZ4JIR lMVjyUYSgk9K7PucfvgtGPHvT4i9T8/VNl0V3op7xMIXpk2m4mXSstkfFn2jxp3ouLHM MoTZqBcq4zVGBXYXsWlOMgUXUoAaFAiBELzYu/pv/RykGzD/ky7gm4dpGK9OTy+w6LDk 6lrrKBjk9lPPOetBfyOyRQFAR6M9L9QFqF0AsHyGApt9aIhd52GOuPcI/PT2Jd1G6nij Sr3FsJ+uBfcaMr8fyCsiWn5SfyBCjmYW1cGITjL4QrXOkb38rU90n5UPt7D+TzWn7+6s pRvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=l9UsVuj5; 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 az8-v6si1137746plb.347.2018.04.27.04.48.17; Fri, 27 Apr 2018 04:48:17 -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=l9UsVuj5; 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 S1758126AbeD0LsM (ORCPT + 29 others); Fri, 27 Apr 2018 07:48:12 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:46591 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757530AbeD0LsJ (ORCPT ); Fri, 27 Apr 2018 07:48:09 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3RBm43K009546; Fri, 27 Apr 2018 06:48:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1524829684; bh=d9f9srmYNGL+VCLHo70uTQHMQLpMfrKzOgkaInQf/9w=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=l9UsVuj5DyQCf9M1d98bJ5LmX0LmVzZ7wSy0x01eb/j0g85Jo7z6c890bemX5XytY yhxiOttQGQeECw3yatNxfLknqwr08jhjxq6aLVFjWJKsLDDZwR77YvxtH5/CA2ijSb Cp3HcS+A0HQgdW+6nX0RiCGIXT5ZuChccM4wvmig= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3RBm4EB015425; Fri, 27 Apr 2018 06:48:04 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 27 Apr 2018 06:48:04 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 27 Apr 2018 06:48:03 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3RBlRSP014207; Fri, 27 Apr 2018 06:48:01 -0500 From: Kishon Vijay Abraham I To: Ulf Hansson , Adrian Hunter CC: Rob Herring , Mark Rutland , , , , , Subject: [PATCH v5 11/14] mmc: sdhci-omap: Add support for MMC/SD controller in k2g SoC Date: Fri, 27 Apr 2018 17:17:20 +0530 Message-ID: <20180427114723.2687-12-kishon@ti.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427114723.2687-1-kishon@ti.com> References: <20180427114723.2687-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 2232a9974b21..b11c846dd8a1 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);