From: Kai Stuhlemmer (ebee Engineering) Date: Fri, 8 Jan 2021 12:40:20 +0000 (+0200) Subject: sam9x60.h: Fix Galois Field Table offsets X-Git-Tag: v2021.10~351^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3270c47b396ed8710f1135896d97c623cfe5a207;p=platform%2Fkernel%2Fu-boot.git sam9x60.h: Fix Galois Field Table offsets 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) [ta: update commit message] Signed-off-by: Tudor Ambarus --- diff --git a/arch/arm/mach-at91/include/mach/sam9x60.h b/arch/arm/mach-at91/include/mach/sam9x60.h index b7f4322..c08d19c 100644 --- a/arch/arm/mach-at91/include/mach/sam9x60.h +++ b/arch/arm/mach-at91/include/mach/sam9x60.h @@ -154,8 +154,8 @@ /* * 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