From: Andre Renaud Date: Thu, 5 May 2016 13:28:14 +0000 (-0600) Subject: at91: Correct NAND ECC register access X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=5a9ae333161902475b14c7722208082c1ac28cff;p=u-boot.git at91: Correct NAND ECC register access This uses the wrote base register value. Fix it. Signed-off-by: Andre Renaud Signed-off-by: Simon Glass Reviewed-by: Andreas Bießmann --- diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 75e830724c..debf93318a 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 */