Skip to content
Snippets Groups Projects
Commit 5a9ae333 authored by Andre Renaud's avatar Andre Renaud Committed by Andreas Bießmann
Browse files

at91: Correct NAND ECC register access


This uses the wrote base register value. Fix it.

Signed-off-by: default avatarAndre Renaud <andre@designa-electronics.com>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarAndreas Bießmann <andreas@biessmann.org>
parent 01648f32
No related branches found
No related tags found
No related merge requests found
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
/* Register access macros */ /* Register access macros */
#define ecc_readl(add, reg) \ #define ecc_readl(add, reg) \
readl(AT91_BASE_SYS + add + ATMEL_ECC_##reg) readl(add + ATMEL_ECC_##reg)
#define ecc_writel(add, reg, value) \ #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 */ #include "atmel_nand_ecc.h" /* Hardware ECC registers */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment