From: Teresa Remmet <t.remmet@phytec.de>
To: barebox@lists.infradead.org
Subject: [PATCH 1/3] boards: phytec-som-am335x: Get ready for EMMC boot
Date: Fri, 26 Jun 2015 10:14:35 +0200 [thread overview]
Message-ID: <1435306477-5949-1-git-send-email-t.remmet@phytec.de> (raw)
Select correct instance when booting from a mmc interface.
Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
---
arch/arm/boards/phytec-som-am335x/board.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boards/phytec-som-am335x/board.c b/arch/arm/boards/phytec-som-am335x/board.c
index 74e39d7..7a87841 100644
--- a/arch/arm/boards/phytec-som-am335x/board.c
+++ b/arch/arm/boards/phytec-som-am335x/board.c
@@ -68,7 +68,10 @@ static int physom_devices_init(void)
of_device_enable_path("/chosen/environment-spi");
break;
case BOOTSOURCE_MMC:
- omap_set_bootmmc_devname("mmc0");
+ if (bootsource_get_instance() == 0)
+ omap_set_bootmmc_devname("mmc0");
+ else
+ omap_set_bootmmc_devname("mmc1");
break;
default:
of_device_enable_path("/chosen/environment-nand");
--
1.9.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2015-06-26 8:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-26 8:14 Teresa Remmet [this message]
2015-06-26 8:14 ` [PATCH 2/3] ARM: dts: am33xx-strip: Keep devices we can boot from Teresa Remmet
2015-06-26 8:14 ` [PATCH 3/3] ARM: dts: am33xx-strip: Strip more unused nodes Teresa Remmet
2015-06-29 4:52 ` [PATCH 1/3] boards: phytec-som-am335x: Get ready for EMMC boot 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=1435306477-5949-1-git-send-email-t.remmet@phytec.de \
--to=t.remmet@phytec.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