Commit 29aa878ffb740a31a932a582e27dc0ea3c0d45e3

Authored by Ye Li
1 parent 5f50a850dd

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 0b65071afaae9d6a49fb7dda2902f5c8bcd678c2)
(cherry picked from commit 712cbc4f23fa4276ae652b8767fd5a0646fab1da)

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/mtd/nand/mxs_nand.c
... ... @@ -806,7 +806,7 @@
806 806 if (status[i] == 0xff) {
807 807 if (is_mx6dqp() || is_mx7() ||
808 808 is_mx6ul())
809   - if (readl(bch_regs->hw_bch_debug1))
  809 + if (readl(&bch_regs->hw_bch_debug1))
810 810 flag = 1;
811 811 continue;
812 812 }