diff options
author | Andre Renaud <andre@designa-electronics.com> | 2016-05-05 13:28:14 (GMT) |
---|---|---|
committer | Andreas Bießmann <andreas@biessmann.org> | 2016-06-12 21:49:38 (GMT) |
commit | 5a9ae333161902475b14c7722208082c1ac28cff (patch) | |
tree | 99b54c43e3567588eacbd595a1bece3e891da7d9 /drivers | |
parent | 01648f324df32aa2ec152b220bbd74a8511174d3 (diff) | |
download | u-boot-fsl-qoriq-5a9ae333161902475b14c7722208082c1ac28cff.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/atmel_nand.c | 4 |
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 */ |