summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Renaud <andre@designa-electronics.com>2016-05-05 07:28:14 -0600
committerAndreas Bießmann <andreas@biessmann.org>2016-06-12 23:49:38 +0200
commit5a9ae333161902475b14c7722208082c1ac28cff (patch)
tree99b54c43e3567588eacbd595a1bece3e891da7d9
parent01648f324df32aa2ec152b220bbd74a8511174d3 (diff)
downloadu-boot-imx-5a9ae333161902475b14c7722208082c1ac28cff.zip
u-boot-imx-5a9ae333161902475b14c7722208082c1ac28cff.tar.gz
u-boot-imx-5a9ae333161902475b14c7722208082c1ac28cff.tar.bz2
at91: Correct NAND ECC register access
This uses the wrote base register value. Fix it. Signed-off-by: Andre Renaud <andre@designa-electronics.com> Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Andreas Bießmann <andreas@biessmann.org>
-rw-r--r--drivers/mtd/nand/atmel_nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 75e8307..debf933 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -24,9 +24,9 @@
/* Register access macros */
#define ecc_readl(add, reg) \
- readl(AT91_BASE_SYS + add + ATMEL_ECC_##reg)
+ readl(add + ATMEL_ECC_##reg)
#define ecc_writel(add, reg, value) \
- writel((value), AT91_BASE_SYS + add + ATMEL_ECC_##reg)
+ writel((value), add + ATMEL_ECC_##reg)
#include "atmel_nand_ecc.h" /* Hardware ECC registers */