mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
ppc4xx: Fix problem with ECC ordering for PPC4xx NDFC platforms
This patch now uses the correct ECC byte order (Smart Media - SMC) to be used on the 4xx NAND FLASH driver. Without this patch we have incompatible ECC byte ordering to the Linux kernel NDFC driver. Please note that we also have to enable CONFIG_MTD_NAND_ECC_SMC in drivers/mtd/nand/nand_ecc.c for correct operation. This is done with a seperate patch. Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
parent
5d841fac82
commit
399aab7748
1 changed files with 2 additions and 2 deletions
|
@ -93,8 +93,8 @@ static int ndfc_calculate_ecc(struct mtd_info *mtdinfo,
|
||||||
|
|
||||||
/* The NDFC uses Smart Media (SMC) bytes order
|
/* The NDFC uses Smart Media (SMC) bytes order
|
||||||
*/
|
*/
|
||||||
ecc_code[0] = p[1];
|
ecc_code[0] = p[2];
|
||||||
ecc_code[1] = p[2];
|
ecc_code[1] = p[1];
|
||||||
ecc_code[2] = p[3];
|
ecc_code[2] = p[3];
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue