Skip to content
Snippets Groups Projects
Commit 2b2cab24 authored by Fabien Parent's avatar Fabien Parent Committed by Tom Rini
Browse files

davinci: omapl138_lcdk: fix bad NAND ECC config


The configuration used to error correction was not in line with what
linux and the ROM code is using. Fix it by using the correct
configuration. Now u-boot and the SPL are able to read correctly
anything written by them.

Signed-off-by: default avatarFabien Parent <fparent@baylibre.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent c0c10449
No related branches found
No related tags found
No related merge requests found
...@@ -173,6 +173,7 @@ ...@@ -173,6 +173,7 @@
#undef CONFIG_SYS_NAND_HW_ECC #undef CONFIG_SYS_NAND_HW_ECC
#define CONFIG_SYS_MAX_NAND_DEVICE 1 /* Max number of NAND devices */ #define CONFIG_SYS_MAX_NAND_DEVICE 1 /* Max number of NAND devices */
#define CONFIG_SYS_NAND_HW_ECC_OOBFIRST #define CONFIG_SYS_NAND_HW_ECC_OOBFIRST
#define CONFIG_NAND_6BYTES_OOB_FREE_10BYTES_ECC
#define CONFIG_SYS_NAND_5_ADDR_CYCLE #define CONFIG_SYS_NAND_5_ADDR_CYCLE
#define CONFIG_SYS_NAND_PAGE_SIZE (2 << 10) #define CONFIG_SYS_NAND_PAGE_SIZE (2 << 10)
#define CONFIG_SYS_NAND_BLOCK_SIZE (128 << 10) #define CONFIG_SYS_NAND_BLOCK_SIZE (128 << 10)
...@@ -184,11 +185,10 @@ ...@@ -184,11 +185,10 @@
CONFIG_SYS_MALLOC_LEN - \ CONFIG_SYS_MALLOC_LEN - \
GENERATED_GBL_DATA_SIZE) GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_NAND_ECCPOS { \ #define CONFIG_SYS_NAND_ECCPOS { \
24, 25, 26, 27, 28, \ 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, \
29, 30, 31, 32, 33, 34, 35, 36, 37, 38, \ 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, \
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, \ 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, \
49, 50, 51, 52, 53, 54, 55, 56, 57, 58, \ 54, 55, 56, 57, 58, 59, 60, 61, 62, 63 }
59, 60, 61, 62, 63 }
#define CONFIG_SYS_NAND_PAGE_COUNT 64 #define CONFIG_SYS_NAND_PAGE_COUNT 64
#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0 #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
#define CONFIG_SYS_NAND_ECCSIZE 512 #define CONFIG_SYS_NAND_ECCSIZE 512
......
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