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:53:13 +0800
commit0b65071afaae9d6a49fb7dda2902f5c8bcd678c2 (patch)
tree499a8160271035a5032ec765f4baea1af9f4a212
parent8cdf030f2c12d26ea555708175540916a3ac9090 (diff)
downloadu-boot-imx-0b65071afaae9d6a49fb7dda2902f5c8bcd678c2.zip
u-boot-imx-0b65071afaae9d6a49fb7dda2902f5c8bcd678c2.tar.gz
u-boot-imx-0b65071afaae9d6a49fb7dda2902f5c8bcd678c2.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>
-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 e54f888..1cf3d11 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 (is_mx6dqp() || is_soc_type(MXC_SOC_MX7) ||
is_cpu_type(MXC_CPU_MX6UL))
- if (readl(bch_regs->hw_bch_debug1))
+ if (readl(&bch_regs->hw_bch_debug1))
flag = 1;
continue;
}