mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <dev@lynxeye.de>
To: barebox@lists.infradead.org
Subject: [PATCH 05/11] mci: tegra: handle mmc aliases
Date: Tue,  3 Mar 2015 20:46:17 +0100	[thread overview]
Message-ID: <1425411983-24732-5-git-send-email-dev@lynxeye.de> (raw)
In-Reply-To: <1425411983-24732-1-git-send-email-dev@lynxeye.de>

This allows to have fixed device names for the SDMMC
controllers.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 drivers/mci/tegra-sdmmc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mci/tegra-sdmmc.c b/drivers/mci/tegra-sdmmc.c
index 0e23d6f..c8924ed 100644
--- a/drivers/mci/tegra-sdmmc.c
+++ b/drivers/mci/tegra-sdmmc.c
@@ -409,7 +409,10 @@ static int tegra_sdmmc_detect(struct device_d *dev)
 static void tegra_sdmmc_parse_dt(struct tegra_sdmmc_host *host)
 {
 	struct device_node *np = host->mci.hw_dev->device_node;
+	const char *alias = of_alias_get(np);
 
+	if (alias)
+		host->mci.devname = xstrdup(alias);
 	host->gpio_cd = of_get_named_gpio(np, "cd-gpios", 0);
 	host->gpio_pwr = of_get_named_gpio(np, "power-gpios", 0);
 	mci_of_parse(&host->mci);
-- 
2.1.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2015-03-03 19:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03 19:46 [PATCH 01/11] of: make of_alias_get work on all types of DT paths Lucas Stach
2015-03-03 19:46 ` [PATCH 02/11] ARM: tegra20: add mmc aliases Lucas Stach
2015-03-03 19:46 ` [PATCH 03/11] ARM: tegra30: " Lucas Stach
2015-03-03 19:46 ` [PATCH 04/11] ARM: tegra124: " Lucas Stach
2015-03-03 19:46 ` Lucas Stach [this message]
2015-03-03 19:46 ` [PATCH 06/11] bbu: include necessary headers Lucas Stach
2015-03-03 19:46 ` [PATCH 07/11] bbu: make bbu confirm a bit more verbose Lucas Stach
2015-03-03 19:46 ` [PATCH 08/11] ARM: tegra: add eMMC barebox update handler Lucas Stach
2015-03-03 19:46 ` [PATCH 09/11] ARM: tegra: add barebox update handler to Beaver board Lucas Stach
2015-03-03 19:46 ` [PATCH 10/11] ARM: tegra: add barebox update handler to Jetson board Lucas Stach
2015-03-03 19:46 ` [PATCH 11/11] ARM: tegra: enable barebox update in defconfig Lucas Stach
2015-03-04 10:34 ` [PATCH 01/11] of: make of_alias_get work on all types of DT paths Sascha Hauer

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=1425411983-24732-5-git-send-email-dev@lynxeye.de \
    --to=dev@lynxeye.de \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox