diff options
author | Ye Li <ye.li@nxp.com> | 2016-05-31 16:32:00 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2016-05-31 16:35:14 +0800 |
commit | 68b49ddaa7e717d5451c6476d3e431b8702adab0 (patch) | |
tree | a19cd6d2b91cfe9fe1d20f4c3502381d3620fd09 | |
parent | 5854563ceeab53dd97613230256909a74e4ec220 (diff) | |
download | u-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.c | 2 |
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; |