Skip to content
Permalink
Browse files

driver: nandflash: Fix set/get features of NAND on-die ECC

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
  • Loading branch information...
prchal authored and wenyouya committed Aug 27, 2013
1 parent 4aaa8b0 commit bce591e7b998053516b86605de35e5f0bcbc9477
Showing with 3 additions and 1 deletion.
  1. +3 −1 driver/nandflash.c
@@ -238,6 +238,7 @@ static void nand_set_feature_on_die_ecc(unsigned char is_enable)
for (i = 0; i < 3; i++)
write_byte(0x00);

nand_wait_ready();
nand_cs_disable();
}

@@ -250,7 +251,8 @@ static unsigned char nand_get_feature_on_die_ecc(void)

nand_command(CMD_GET_FEATURE);
nand_address(0x90);
udelay(100);
nand_wait_ready();
nand_command(CMD_READ_1);

for (i = 0; i < 4; i++)
buffer[i] = read_byte();

0 comments on commit bce591e

Please sign in to comment.
You can’t perform that action at this time.