]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Revert "sama5d3: Fix Galois Field Table offsets"
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 21 May 2021 08:52:04 +0000 (11:52 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Mon, 7 Jun 2021 08:01:40 +0000 (11:01 +0300)
This reverts commit 786f888b743e9b83c9095cb9b5548ebe2e29afc5.

Looks like the datasheet at
https://ww1.microchip.com/downloads/en/DeviceDoc/SAMA5D3-Series-Data-sheet-DS60001609b.pdf
is wrong, and the testing was poorly done, because the PMECC did not raise
any error, but also didn't correct any bitflips. Restoring the offsets
as they were before, makes the PMECC on sama5d3x capable of correcting
bitflips.

Fixes: 786f888b74 ("sama5d3: Fix Galois Field Table offsets")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
arch/arm/mach-at91/include/mach/sama5d3.h

index f4f05676f727fb8412262cc15701694e936d7fca..83f18a8148f77c5cec0cd0dc83f59ec2c63dca23 100644 (file)
 /*
  * PMECC table in ROM
  */
-#define ATMEL_PMECC_INDEX_OFFSET_512   0x8000
-#define ATMEL_PMECC_INDEX_OFFSET_1024  0x10000
+#define ATMEL_PMECC_INDEX_OFFSET_512   0x10000
+#define ATMEL_PMECC_INDEX_OFFSET_1024  0x18000
 
 /*
  * SAMA5D3 specific prototypes