Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp304895ybp; Tue, 8 Oct 2019 18:31:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5t1pbBDietVoAgh0eNt9paQqnNS5eDGWA1ukjckwzM0FxHZh5XIdxCcwd3ivFVAAN3Mpk X-Received: by 2002:a17:906:6d82:: with SMTP id h2mr560977ejt.127.1570584710153; Tue, 08 Oct 2019 18:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570584710; cv=none; d=google.com; s=arc-20160816; b=SkTZ8C9CeCJ9nvXic5y7yfVKA2eeSTZm4ifZNu7l2DJ1T4G2fsddTq6qefrQ62SR78 diQtFHzxrSNlL/aHpDe9WYKKP9PMDJeHhPpOQNTnoyzY8KA+RQJL9UywHJfqjvagEO6D vVXIU2PRwq5YxLrCiR3xaMLitOp6hgPIs0OdecjVGok3VLi0z2vbGl9UdLILFCG5vG7r fzPiJ7sZg+KTiBQd/+cRMHOsjoTTzi1Le9hbtcVY8J8P/AaWqG1borDpvo16hfQ3jmzm BwHuW0sQ4JGY7WTXtiDz4UE3uOrCial4pmLNZm8em1v4BeQMPt5lVk9QRi0Bvireffxp X3iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=2bX0mWV+15tZJJYoRqa18ZEflepCB+TXToQ/mxQp1DE=; b=irivbjLbELoX4BuCnmHAOebPvSD3UbzUy4qkDZuU5ls8Bn830MG4KbY+rm+McCGXSV ZWXmUC8Xu6Vp+q5mmdLZ+VQNeFqCsJ2isSy5ncNceI3VoqVR1J+SiZCzPS4FnBMe21Tf SuhSgi4qjEkTJbqnZx0VMhjdRzBAVrfU7aVpUSKuCUcHP0lClHIK6RvXioCrnQDgRlyy kFDw8slmMNYjOqZVgw9+QIeABgujbXGzcMKOOr7CFt5v/np+/3YF6JlfisGKONmJkLXc cRIInMRqrPJ7QyUifY7ScmSiKQI6PrIFTxzbzj051SA6hbECv8iPTSNMzPlu48kq7kMF dh9A== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a29si482908eda.246.2019.10.08.18.31.25; Tue, 08 Oct 2019 18:31:50 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730223AbfJIB2c (ORCPT + 99 others); Tue, 8 Oct 2019 21:28:32 -0400 Received: from mga07.intel.com ([134.134.136.100]:41440 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729700AbfJIB2b (ORCPT ); Tue, 8 Oct 2019 21:28:31 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Oct 2019 18:28:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,273,1566889200"; d="scan'208";a="345212608" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga004.jf.intel.com with ESMTP; 08 Oct 2019 18:28:27 -0700 From: "Ramuthevar,Vadivel MuruganX" To: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, adrian.hunter@intel.com, ulf.hansson@linaro.org, michal.simek@xilinx.com, robh+dt@kernel.org, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, Ramuthevar Vadivel Murugan Subject: [PATCH v2 2/2] mmc: sdhci-of-arasan: Add Support for Intel LGM SDXC Date: Wed, 9 Oct 2019 09:28:18 +0800 Message-Id: <20191009012818.32763-3-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191009012818.32763-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20191009012818.32763-1-vadivel.muruganx.ramuthevar@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ramuthevar Vadivel Murugan The current arasan sdhci PHY configuration isn't compatible with the PHY on Intel's LGM(Lightning Mountain) SoC devices. Therefore, add a new compatible, to adapt the Intel's LGM SDXC PHY with arasan-sdhc controller to configure the PHY. Signed-off-by: Ramuthevar Vadivel Murugan Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-of-arasan.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 7023cbec4017..55de839a8a5e 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -120,6 +120,12 @@ static const struct sdhci_arasan_soc_ctl_map intel_lgm_emmc_soc_ctl_map = { .hiword_update = false, }; +static const struct sdhci_arasan_soc_ctl_map intel_lgm_sdxc_soc_ctl_map = { + .baseclkfreq = { .reg = 0x80, .width = 8, .shift = 2 }, + .clockmultiplier = { .reg = 0, .width = -1, .shift = -1 }, + .hiword_update = false, +}; + /** * sdhci_arasan_syscon_write - Write to a field in soc_ctl registers * @@ -384,6 +390,11 @@ static struct sdhci_arasan_of_data intel_lgm_emmc_data = { .pdata = &sdhci_arasan_cqe_pdata, }; +static struct sdhci_arasan_of_data intel_lgm_sdxc_data = { + .soc_ctl_map = &intel_lgm_sdxc_soc_ctl_map, + .pdata = &sdhci_arasan_cqe_pdata, +}; + #ifdef CONFIG_PM_SLEEP /** * sdhci_arasan_suspend - Suspend method for the driver @@ -489,6 +500,10 @@ static const struct of_device_id sdhci_arasan_of_match[] = { .compatible = "intel,lgm-sdhci-5.1-emmc", .data = &intel_lgm_emmc_data, }, + { + .compatible = "intel,lgm-sdhci-5.1-sdxc", + .data = &intel_lgm_sdxc_data, + }, /* Generic compatible below here */ { .compatible = "arasan,sdhci-8.9a", -- 2.11.0