diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-10 00:59:04 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-10 00:59:04 +0200 |
commit | 40234535ee4ed8721cbc14414f65910fc83d81d0 (patch) | |
tree | 4fa164030d538526ed22908cf014c16b166a1897 /cpu/arm926ejs | |
parent | 8915f1189c1d29d8be7f4de325702d90a8988219 (diff) | |
parent | 9d2e3947b2944e5bb85b4335533f8c93c58445fe (diff) | |
download | u-boot-imx-40234535ee4ed8721cbc14414f65910fc83d81d0.zip u-boot-imx-40234535ee4ed8721cbc14414f65910fc83d81d0.tar.gz u-boot-imx-40234535ee4ed8721cbc14414f65910fc83d81d0.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot-nand-flash
Diffstat (limited to 'cpu/arm926ejs')
-rw-r--r-- | cpu/arm926ejs/davinci/nand.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpu/arm926ejs/davinci/nand.c b/cpu/arm926ejs/davinci/nand.c index ffc770f..36468e6 100644 --- a/cpu/arm926ejs/davinci/nand.c +++ b/cpu/arm926ejs/davinci/nand.c @@ -240,7 +240,8 @@ static int nand_davinci_compare_ecc(u_int8_t *ecc_nand, u_int8_t *ecc_calc, u_in return 0; case 1: /* Uncorrectable error */ - DEBUG (MTD_DEBUG_LEVEL0, "ECC UNCORRECTED_ERROR 1\n"); + MTDDEBUG (MTD_DEBUG_LEVEL0, + "ECC UNCORRECTED_ERROR 1\n"); return(-1); case 12: /* Correctable error */ @@ -256,7 +257,9 @@ static int nand_davinci_compare_ecc(u_int8_t *ecc_nand, u_int8_t *ecc_calc, u_in find_bit = (ecc_bit[5] << 2) + (ecc_bit[3] << 1) + ecc_bit[1]; - DEBUG (MTD_DEBUG_LEVEL0, "Correcting single bit ECC error at offset: %d, bit: %d\n", find_byte, find_bit); + MTDDEBUG (MTD_DEBUG_LEVEL0, "Correcting single bit ECC " + "error at offset: %d, bit: %d\n", + find_byte, find_bit); page_data[find_byte] ^= (1 << find_bit); @@ -266,7 +269,8 @@ static int nand_davinci_compare_ecc(u_int8_t *ecc_nand, u_int8_t *ecc_calc, u_in if (ecc_calc[0] == 0 && ecc_calc[1] == 0 && ecc_calc[2] == 0) return(0); } - DEBUG (MTD_DEBUG_LEVEL0, "UNCORRECTED_ERROR default\n"); + MTDDEBUG (MTD_DEBUG_LEVEL0, + "UNCORRECTED_ERROR default\n"); return(-1); } } |