summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-05-31 16:32:00 +0800
committerYe Li <ye.li@nxp.com>2016-05-31 16:35:14 +0800
commit68b49ddaa7e717d5451c6476d3e431b8702adab0 (patch)
treea19cd6d2b91cfe9fe1d20f4c3502381d3620fd09
parent5854563ceeab53dd97613230256909a74e4ec220 (diff)
downloadu-boot-imx-68b49ddaa7e717d5451c6476d3e431b8702adab0.zip
u-boot-imx-68b49ddaa7e717d5451c6476d3e431b8702adab0.tar.gz
u-boot-imx-68b49ddaa7e717d5451c6476d3e431b8702adab0.tar.bz2
MLK-12865 Nand: Fix BCH debug1 register access issue
Should have "&" to access the register address, otherwise uboot will hang. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit 806b2966f155b8ecef4182fca7151d07b1a9f420)
-rw-r--r--drivers/mtd/nand/mxs_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c
index 46dc7b1..28f284e 100644
--- a/drivers/mtd/nand/mxs_nand.c
+++ b/drivers/mtd/nand/mxs_nand.c
@@ -800,7 +800,7 @@ static int mxs_nand_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand,
if (status[i] == 0xff) {
#if defined(CONFIG_MX6QP) || defined(CONFIG_MX7) || defined(CONFIG_MX6UL)
- if (readl(bch_regs->hw_bch_debug1))
+ if (readl(&bch_regs->hw_bch_debug1))
flag = 1;
#endif
continue;