Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1673210ybn; Wed, 2 Oct 2019 21:20:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqypbNz7HGdqS7UIZlCNg/aueYS4caXCkPR1AX3lTFfhPS8Z6ucBprRkrlAn57Zk79myLQ2Q X-Received: by 2002:a17:906:409b:: with SMTP id u27mr6071427ejj.295.1570076413751; Wed, 02 Oct 2019 21:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570076413; cv=none; d=google.com; s=arc-20160816; b=UMI/64b2fF//PDzvDno67J/NzY0ZGeAmTywxgEz3IQFum1vndbEEHAgEgoCDihGyxC YVTFJkrUyJZcK2Egm2n4zfB+vE/vGRxlyJ7/R+CQKRUTOjenczPs0MzfSe1xZ3TB7iHm pHHTwsieV+qhtnKslFHX5byAyEH12eGL+yraE7VhE//FtNvqfcQoYpPgfcUhuIs9BiQ3 23YGdvUb1bbAGlMdLgGEEsX0N/DKYF5fBVoFm/JU+u6uFOfTYaQ2HZlGX4EQ6TGWyvV9 HH3zx+N6Kqhr/YMkjC+42hyeK4YQpxAkgvhPL+aGKcZAF8PCr4b28hEnGP3mByY3i+iK nLwQ== 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=/WBPD/hUg4BpdkbbAoJu/GtAvkwhbRO0/zh3RYMvz70=; b=gFejpu1d5zuYU6rhp9PdZl7zP4fyVrQxaY6EsEZTES6OXPs6FglCAK/PdBHiYJhNSG t5OGiIEFrWTH0DeWldRPctkOsrTJjAWDyYpULIO5+ND+bBeDmkhfqaqWpGzDnDi7k65+ 1puVjSpK3telDoqiiZNiEt2o7FSU5BwmXyhgluxUIMKBC3FGH5ZRec0YOzOX5fW1ZRtc aO6o4DHjPhlbaLBoMr+NlzHFfVyL++a5ynNyeN1Jsb7zXw79u4kjCijzpePmDBOiPbjP cWygMl8753jUswmKO7fH+MUi5koP1a0NX0dltfkkl+XhZ0zk+sCx8bTWjblTQfMD2G9F OFBQ== 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 j13si600587ejb.98.2019.10.02.21.19.49; Wed, 02 Oct 2019 21:20:13 -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 S1726597AbfJCEBA (ORCPT + 99 others); Thu, 3 Oct 2019 00:01:00 -0400 Received: from mga05.intel.com ([192.55.52.43]:4523 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbfJCEA7 (ORCPT ); Thu, 3 Oct 2019 00:00:59 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Oct 2019 21:00:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,250,1566889200"; d="scan'208";a="275579037" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga001.jf.intel.com with ESMTP; 02 Oct 2019 21:00:55 -0700 From: "Ramuthevar,Vadivel MuruganX" To: ulf.hansson@linaro.org, linux-mmc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, adrian.hunter@intel.com, michal.simek@xilinx.com, robh+dt@kernel.org, mark.rutland@arm.com, andriy.shevchenko@intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, Ramuthevar Vadivel Murugan Subject: [PATCH v1 2/2] mmc: sdhci-of-arasan: Add Support for Intel LGM SDXC Date: Thu, 3 Oct 2019 12:00:32 +0800 Message-Id: <20191003040032.37696-3-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20191003040032.37696-1-vadivel.muruganx.ramuthevar@linux.intel.com> References: <20191003040032.37696-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 --- 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