[U-Boot] [PATCH v2 10/18] at91: Correct NAND ECC register access
Simon Glass
sjg at chromium.org
Thu May 5 15:28:14 CEST 2016
From: Andre Renaud <andre at designa-electronics.com>
This uses the wrote base register value. Fix it.
Signed-off-by: Andre Renaud <andre at designa-electronics.com>
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2: None
drivers/mtd/nand/atmel_nand.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 7cc1de0..4e278fa 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 */
--
2.8.0.rc3.226.g39d4020
More information about the U-Boot
mailing list