All of lore.kernel.org
 help / color / mirror / Atom feed
From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 10/12] mmc: zynq_sdhci: Update quirk if 1.8v switching not supported
Date: Wed, 18 Jan 2017 14:34:29 +0530	[thread overview]
Message-ID: <1484730271-21944-11-git-send-email-sivadur@xilinx.com> (raw)
In-Reply-To: <1484730271-21944-1-git-send-email-sivadur@xilinx.com>

Update quirk if 1.8 voltage switching is not supported
on boards by reading the property "no-1-8-v" from device
tree.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
---
 drivers/mmc/zynq_sdhci.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c
index e1377cd..124a908 100644
--- a/drivers/mmc/zynq_sdhci.c
+++ b/drivers/mmc/zynq_sdhci.c
@@ -33,6 +33,7 @@ struct arasan_sdhci_priv {
 	struct sdhci_host *host;
 	u8 deviceid;
 	u8 bank;
+	u8 no_1p8;
 };
 
 #if defined(CONFIG_ARCH_ZYNQMP)
@@ -173,6 +174,9 @@ static int arasan_sdhci_probe(struct udevice *dev)
 	host->quirks |= SDHCI_QUIRK_NO_HISPD_BIT;
 #endif
 
+	if (priv->no_1p8)
+		host->quirks |= SDHCI_QUIRK_NO_1_8_V;
+
 	ret = sdhci_setup_cfg(&plat->cfg, host, CONFIG_ZYNQ_SDHCI_MAX_FREQ,
 			      CONFIG_ZYNQ_SDHCI_MIN_FREQ);
 	host->mmc = &plat->mmc;
@@ -205,6 +209,10 @@ static int arasan_sdhci_ofdata_to_platdata(struct udevice *dev)
 					"xlnx,device_id", -1);
 	priv->bank = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
 				    "xlnx,mio_bank", -1);
+	if (fdt_get_property(gd->fdt_blob, dev->of_offset, "no-1-8-v", NULL))
+		priv->no_1p8 = 1;
+	else
+		priv->no_1p8 = 0;
 
 	return 0;
 }
-- 
2.7.4

  parent reply	other threads:[~2017-01-18  9:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170118094406epcas4p1abc2be6fdfd4754da95af78c0ea3ab25@epcas4p1.samsung.com>
2017-01-18  9:04 ` [U-Boot] [PATCH 00/12] Add support for SD3.0 and eMMC HS200 Siva Durga Prasad Paladugu
2017-01-18  9:04   ` [U-Boot] [PATCH 01/12] mmc: sdhci: Update host capabilities about host controller Siva Durga Prasad Paladugu
2017-01-18  9:04   ` [U-Boot] [PATCH 02/12] mmc: sdhci: Add support for SD3.0 Siva Durga Prasad Paladugu
2017-01-18  9:04   ` [U-Boot] [PATCH 03/12] mmc: sdhci: Add support for platform/board specific tuning Siva Durga Prasad Paladugu
2017-01-18  9:11     ` Michal Simek
2017-01-18  9:04   ` [U-Boot] [PATCH 04/12] mmc: sdhci: Add support for platform specific delay Siva Durga Prasad Paladugu
2017-01-18  9:04   ` [U-Boot] [PATCH 05/12] mmc: sdhci: Make sdhci_ops of host as modifiable Siva Durga Prasad Paladugu
2017-01-18  9:04   ` [U-Boot] [PATCH 06/12] zynqmp: Define routines for mmio write and read Siva Durga Prasad Paladugu
2017-01-18  9:04   ` [U-Boot] [PATCH 07/12] mmc: sdhci: zynq: Define private structure arasan_sdhci_priv Siva Durga Prasad Paladugu
2017-01-18  9:04   ` [U-Boot] [PATCH 08/12] mmc: sdhci: zynqmp: Add support of SD3.0 Siva Durga Prasad Paladugu
2017-01-18  9:04   ` [U-Boot] [PATCH 09/12] mmc: sdhci: Add quirk for 1.8v switching not supported Siva Durga Prasad Paladugu
2017-01-18  9:04   ` Siva Durga Prasad Paladugu [this message]
2017-01-18  9:04   ` [U-Boot] [PATCH 11/12] mmc: sdhci: Add support for eMMC HS200 mode Siva Durga Prasad Paladugu
2017-01-18  9:04   ` [U-Boot] [PATCH 12/12] mmc: sdhci: zynqmp: Set tapdelays " Siva Durga Prasad Paladugu
2017-01-19  5:00   ` [U-Boot] [PATCH 00/12] Add support for SD3.0 and eMMC HS200 Jaehoon Chung
2017-01-19  5:47     ` Siva Durga Prasad Paladugu
2017-01-19  6:11       ` Jaehoon Chung

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1484730271-21944-11-git-send-email-sivadur@xilinx.com \
    --to=siva.durga.paladugu@xilinx.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.