nand ecc correction fixed

This commit is contained in:
Sven Peter 2009-04-15 21:11:33 +02:00 committed by bushing
parent 0c2fb136e8
commit 4f1ed52dd7

4
nand.c
View File

@ -265,8 +265,8 @@ void nand_initialize(void)
int nand_correct(u32 pageno, void *data, void *ecc) int nand_correct(u32 pageno, void *data, void *ecc)
{ {
u8 *dp = (u8*)data; u8 *dp = (u8*)data;
u32 *ecc_read = (u32*)((u8*)ecc)+0x30; u32 *ecc_read = (u32*)((u8*)ecc+0x30);
u32 *ecc_calc = (u32*)((u8*)ecc)+0x40; u32 *ecc_calc = (u32*)((u8*)ecc+0x40);
int i; int i;
int uncorrectable = 0; int uncorrectable = 0;
int corrected = 0; int corrected = 0;