]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sam9x60.h: Fix Galois Field Table offsets
authorKai Stuhlemmer (ebee Engineering) <kai.stuhlemmer@ebee.de>
Fri, 8 Jan 2021 12:40:20 +0000 (14:40 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Fri, 22 Jan 2021 13:09:59 +0000 (15:09 +0200)
Because ATMEL_BASE_ROM is defined to 0x100000, it already points
to the begin of the index table for 512 byte sectors correction.
Thus its offset must be zero and the index of the table for 1024
byte sectors must start at offset 0x8000.

Signed-off-by: Kai Stuhlemmer (ebee Engineering) <kai.stuhlemmer@ebee.de>
[ta: update commit message]
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
arch/arm/mach-at91/include/mach/sam9x60.h

index b7f43226b7ee7d7d12a05ea6205b26c36eeeedd4..c08d19c6917b2b8d3306907535e60f6a42cdd5ae 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   0x0000
+#define ATMEL_PMECC_INDEX_OFFSET_1024  0x8000
 
 /*
  * SAM9X60 specific prototypes