From: Jagan Teki <jagannadh.teki@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 6/9] board: icore-rqs: Fix mmc get env device
Date: Tue, 21 Nov 2017 00:02:15 +0530 [thread overview]
Message-ID: <1511202738-17448-7-git-send-email-jagan@amarulasolutions.com> (raw)
In-Reply-To: <1511202738-17448-1-git-send-email-jagan@amarulasolutions.com>
As per USDHC boot eFUSE descriptions:
USDHC3 => devno 2
USDHC4 => devno 3
Linux will detect mmc0, mmc1, mmc2 based on the status
"okay" on usdhc so imx6qdl-icore-rqs.dtsi has enabled
usdhc1, usdhc3 and usdhc4.But U-Boot can detect based
on the aliases so add mmc1, mmc2 for usdhc3 and usdhc4
respectively and return the board_mmc_get_env_dev
by subtracting -1
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
arch/arm/dts/imx6qdl-icore-rqs.dtsi | 5 +++++
board/engicam/icorem6_rqs/icorem6_rqs.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/arm/dts/imx6qdl-icore-rqs.dtsi b/arch/arm/dts/imx6qdl-icore-rqs.dtsi
index 65cbf5a..816cdce 100644
--- a/arch/arm/dts/imx6qdl-icore-rqs.dtsi
+++ b/arch/arm/dts/imx6qdl-icore-rqs.dtsi
@@ -43,6 +43,11 @@
#include <dt-bindings/clock/imx6qdl-clock.h>
/ {
+ aliases {
+ mmc1 = &usdhc3;
+ mmc2 = &usdhc4;
+ };
+
memory {
reg = <0x10000000 0x80000000>;
};
diff --git a/board/engicam/icorem6_rqs/icorem6_rqs.c b/board/engicam/icorem6_rqs/icorem6_rqs.c
index cd73dfa..a55a754 100644
--- a/board/engicam/icorem6_rqs/icorem6_rqs.c
+++ b/board/engicam/icorem6_rqs/icorem6_rqs.c
@@ -13,7 +13,7 @@ DECLARE_GLOBAL_DATA_PTR;
#ifdef CONFIG_ENV_IS_IN_MMC
int board_mmc_get_env_dev(int devno)
{
- return devno;
+ return devno - 1;
}
#endif
--
2.7.4
next prev parent reply other threads:[~2017-11-20 18:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-20 18:32 [U-Boot] [PATCH v3 0/9] i.MX6: engicam: Add SPL_OF_CONTROL support Jagan Teki
2017-11-20 18:32 ` [U-Boot] [PATCH v3 1/9] i.MX6: engicam: Move set_fdt_file to common Jagan Teki
2017-11-20 18:32 ` [U-Boot] [PATCH v3 2/9] i.MX6Q: icorem6: Move spl load fit to common/spl Jagan Teki
2017-11-20 18:32 ` [U-Boot] [PATCH v3 3/9] i.MX6Q: icore: Add SPL_OF_CONTROL support Jagan Teki
2017-11-20 18:32 ` [U-Boot] [PATCH v3 4/9] pinctrl: imx6ul: Fix pinctrl data overlapped with DT area Jagan Teki
2017-11-20 18:32 ` [U-Boot] [PATCH v3 5/9] i.MX6UL: icore: Add SPL_OF_CONTROL support Jagan Teki
2017-11-20 18:32 ` Jagan Teki [this message]
2017-11-20 18:32 ` [U-Boot] [PATCH v3 7/9] i.MX6: engicam: Add imx6q/imx6ul boards for existing boards Jagan Teki
2017-11-20 18:32 ` [U-Boot] [PATCH v3 8/9] engicam: imx6q: Return mmc dev 0 for icore Jagan Teki
2017-11-20 18:32 ` [U-Boot] [PATCH v3 9/9] configs: icore-rqs: Enable falcon mode Jagan Teki
2017-11-27 9:53 ` [U-Boot] [PATCH v3 0/9] i.MX6: engicam: Add SPL_OF_CONTROL support Stefano Babic
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=1511202738-17448-7-git-send-email-jagan@amarulasolutions.com \
--to=jagannadh.teki@gmail.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.