Skip to content

Commit

Permalink
driver: nandflash: Fix set/get features of NAND on-die ECC
Browse files Browse the repository at this point in the history
Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
  • Loading branch information
prchal authored and wenyouya committed Jun 19, 2017
1 parent 4aaa8b0 commit bce591e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion driver/nandflash.c
Expand Up @@ -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();
}

Expand All @@ -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();
Expand Down

0 comments on commit bce591e

Please sign in to comment.