summaryrefslogtreecommitdiff
path: root/board/freescale/mx53_evk
diff options
context:
space:
mode:
authorAnish Trivedi <anish@freescale.com>2010-06-23 16:49:08 -0500
committerAnish Trivedi <anish@freescale.com>2010-06-24 09:47:41 -0500
commit429e9bb343c2c76dcf4aeaa3f4533f1dde09fb3a (patch)
tree6f8cb03ceb9c44f852d6edd6072d4cac04cca539 /board/freescale/mx53_evk
parent3bd50a46e4453ca2492169e7add9cde0752442e2 (diff)
downloadu-boot-imx-429e9bb343c2c76dcf4aeaa3f4533f1dde09fb3a.zip
u-boot-imx-429e9bb343c2c76dcf4aeaa3f4533f1dde09fb3a.tar.gz
u-boot-imx-429e9bb343c2c76dcf4aeaa3f4533f1dde09fb3a.tar.bz2
ENGR00124652 UBOOT: MX53 env fails to load when booting from 2nd slot
Added dynamic check for which sd slot used for boot Signed-off-by: Anish Trivedi <anish@freescale.com>
Diffstat (limited to 'board/freescale/mx53_evk')
-rw-r--r--board/freescale/mx53_evk/mx53_evk.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/freescale/mx53_evk/mx53_evk.c b/board/freescale/mx53_evk/mx53_evk.c
index f9731bf..8cfd2da 100644
--- a/board/freescale/mx53_evk/mx53_evk.c
+++ b/board/freescale/mx53_evk/mx53_evk.c
@@ -600,6 +600,15 @@ struct fsl_esdhc_cfg esdhc_cfg[2] = {
{MMC_SDHC3_BASE_ADDR, 1, 1},
};
+#ifdef CONFIG_DYNAMIC_MMC_DEVNO
+int get_mmc_env_devno()
+{
+ uint soc_sbmr = readl(SRC_BASE_ADDR + 0x4);
+ return (soc_sbmr & 0x00300000) ? 1 : 0;
+}
+#endif
+
+
int esdhc_gpio_init(bd_t *bis)
{
s32 status = 0;