summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChristian Hemp <c.hemp@phytec.de>2019-03-15 15:08:52 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-03-18 09:44:36 +0100
commit5f16ab6836282b496b4b09460c24aa0594aaf121 (patch)
tree5573dae21a5d8bfe5898f7d3531adec8a34e7aa9 /drivers
parent60fd7d3c2bb90e6980a3889903963b09a1ab98cc (diff)
downloadbarebox-5f16ab6836282b496b4b09460c24aa0594aaf121.tar.gz
mci: imx-esdhc-pbl: initialize is_be
Initialize is_be, otherwise the value of is_be is undefined. So it is possible that the i.MX8 will not boot because the bigendian functions are used. Signed-off-by: Christian Hemp <c.hemp@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mci/imx-esdhc-pbl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mci/imx-esdhc-pbl.c b/drivers/mci/imx-esdhc-pbl.c
index f77530d..8a03c5f 100644
--- a/drivers/mci/imx-esdhc-pbl.c
+++ b/drivers/mci/imx-esdhc-pbl.c
@@ -366,6 +366,7 @@ int imx6_esdhc_start_image(int instance)
return -EINVAL;
}
+ esdhc.is_be = 0;
esdhc.is_mx6 = 1;
return esdhc_start_image(&esdhc, 0x10000000, 0x10000000, 0);
@@ -398,6 +399,7 @@ int imx8_esdhc_start_image(int instance)
return -EINVAL;
}
+ esdhc.is_be = 0;
esdhc.is_mx6 = 1;
return esdhc_start_image(&esdhc, MX8MQ_DDR_CSD1_BASE_ADDR,