From patchwork Mon Feb 5 12:50:29 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: 126857 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1943582ljc; Mon, 5 Feb 2018 04:53:47 -0800 (PST) X-Google-Smtp-Source: AH8x224t0uMlwTHOIMEb2zVsoR72wtnr6+OAC/X8VoWDXW5co4DGjuDzLK8t76DFkEisXWzbW2bh X-Received: by 10.99.169.26 with SMTP id u26mr37718722pge.270.1517835227298; Mon, 05 Feb 2018 04:53:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517835227; cv=none; d=google.com; s=arc-20160816; b=MmPtLmckenFhzIgW9jH9z9yRPXBtxkgk9BnMM8QXdxU0lHMM0n4qtqnxWA16VVTfxp N6iDAnu42JUqCOaucT6ZuQeX9fT65/edZ/0SB6yB61YFRgiKhdIyOpel0ZFdS2+jsnTU a/izv6+oJzkfJu7cGGoYuz6M7AZIlEwzEvcL6gFc/hAFd0D5CQRzJGURg3gyFUBZCdrd JN6ZA7nZZ94gkgYyrxNOGnK8ZMK0ii/OM+ZO0qLRbMnINh/VPp7uxa589oycZXvgBHbq W0QsdOD5/PBgiO+th91MIKnAQ7XzHUnmZUPKv+/YAm0CZ34MaicbUPMHsqTDlWYSiEDc knfg== 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=J2yRwsImUCu62UchYczQDYsPsWmM7hdUyBKBJsGOcW8=; b=CNEPvAZqAb4v88zHbFyQ98+uepqQXfHUK/1+N6F5q8dEuqOaD9Ih/p6sWa7ACbdVEu mxr4mONucCY/Yi6CPT2RbpgJhGZoiIsGJjaH2egdtAKOISxgcy6NeLCeRa56Tyj7ewKD jeMs/5fNQCj7GwnYZcjR5BHdNcQo8lUM2pGE3zUCHCI4MEr3HMAW4SUtSxNTob6zdX5i plel9CmQx39B6uaFgawq6xvZu0Xrjq5pbT9qRekaXyCkkVlAApghqjnwaoLBX6JrDzE+ NHMD25QyOVS74phnEaIFRf+NNoUP8QMzlXlNXLvJD2/QCVAY8Erzh8n4t5ury0dTKMdc MhLw== 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=p9g+U9aC; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 x2si5455797pgq.223.2018.02.05.04.53.47; Mon, 05 Feb 2018 04:53:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=p9g+U9aC; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1753055AbeBEMxp (ORCPT + 6 others); Mon, 5 Feb 2018 07:53:45 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:29284 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753067AbeBEMwT (ORCPT ); Mon, 5 Feb 2018 07:52:19 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w15CpcuQ010738; Mon, 5 Feb 2018 06:51:38 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1517835098; bh=v7rIXG4/X+tOoMs2PCvAninKpcVkn+DGNAR5IDE0C8M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=p9g+U9aCWf7ymKJ8qTmvHP2ogJtOKkfFtaGbcgb9xNY3vGU0roPOsjxs1jUww+oJ9 j6txl69eda/OU1AVahKqSuCp6pftmEKGPfmY+jqYp7e1n5/CXZBqxYRgMXoGNSx4Y1 8jn7M31RP1IC80NhrIByDDCPrmS7PB2Ir2qWGowM= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w15CpcEY020677; Mon, 5 Feb 2018 06:51:38 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE105.ent.ti.com (10.64.6.26) 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:38 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) 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.1261.35 via Frontend Transport; Mon, 5 Feb 2018 06:51:38 -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 w15CoaGl023963; Mon, 5 Feb 2018 06:51:35 -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 16/16] ARM: OMAP2+: Use sdhci-omap specific pdata-quirks for MMC/SD on DRA74x EVM Date: Mon, 5 Feb 2018 18:20:29 +0530 Message-ID: <20180205125029.21570-17-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Use sdhci-omap specific pdata-quirks for MMC/SD on DRA74x EVM since UHS modes are supported only in sdhci-omap (and not in omap-hsmmc). Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/pdata-quirks.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index 6b433fce65a5..92fb8828d57f 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include #include @@ -38,7 +38,7 @@ #include "soc.h" #include "hsmmc.h" -static struct omap_hsmmc_platform_data __maybe_unused mmc_pdata[2]; +static struct sdhci_omap_platform_data __maybe_unused mmc_pdata[2]; struct pdata_init { const char *compatible; @@ -435,21 +435,21 @@ static void __init omap5_uevm_legacy_init(void) #endif #ifdef CONFIG_SOC_DRA7XX -static struct omap_hsmmc_platform_data dra7_hsmmc_data_mmc1; -static struct omap_hsmmc_platform_data dra7_hsmmc_data_mmc2; -static struct omap_hsmmc_platform_data dra7_hsmmc_data_mmc3; +static struct sdhci_omap_platform_data dra7_sdhci_data_mmc1; +static struct sdhci_omap_platform_data dra7_sdhci_data_mmc2; +static struct sdhci_omap_platform_data dra7_sdhci_data_mmc3; static void __init dra7x_evm_mmc_quirk(void) { if (omap_rev() == DRA752_REV_ES1_1 || omap_rev() == DRA752_REV_ES1_0) { - dra7_hsmmc_data_mmc1.version = "rev11"; - dra7_hsmmc_data_mmc1.max_freq = 96000000; + dra7_sdhci_data_mmc1.version = "rev11"; + dra7_sdhci_data_mmc1.max_freq = 96000000; - dra7_hsmmc_data_mmc2.version = "rev11"; - dra7_hsmmc_data_mmc2.max_freq = 48000000; + dra7_sdhci_data_mmc2.version = "rev11"; + dra7_sdhci_data_mmc2.max_freq = 48000000; - dra7_hsmmc_data_mmc3.version = "rev11"; - dra7_hsmmc_data_mmc3.max_freq = 48000000; + dra7_sdhci_data_mmc3.version = "rev11"; + dra7_sdhci_data_mmc3.max_freq = 48000000; } } #endif @@ -582,12 +582,12 @@ static struct of_dev_auxdata omap_auxdata_lookup[] __initdata = { &omap4_iommu_pdata), #endif #ifdef CONFIG_SOC_DRA7XX - OF_DEV_AUXDATA("ti,dra7-hsmmc", 0x4809c000, "4809c000.mmc", - &dra7_hsmmc_data_mmc1), - OF_DEV_AUXDATA("ti,dra7-hsmmc", 0x480b4000, "480b4000.mmc", - &dra7_hsmmc_data_mmc2), - OF_DEV_AUXDATA("ti,dra7-hsmmc", 0x480ad000, "480ad000.mmc", - &dra7_hsmmc_data_mmc3), + OF_DEV_AUXDATA("ti,dra7-sdhci", 0x4809c000, "4809c000.mmc", + &dra7_sdhci_data_mmc1), + OF_DEV_AUXDATA("ti,dra7-sdhci", 0x480b4000, "480b4000.mmc", + &dra7_sdhci_data_mmc2), + OF_DEV_AUXDATA("ti,dra7-sdhci", 0x480ad000, "480ad000.mmc", + &dra7_sdhci_data_mmc3), #endif /* Common auxdata */ OF_DEV_AUXDATA("pinctrl-single", 0, NULL, &pcs_pdata),