mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-05 11:00:43 +09:00
mtd: denali: support NAND_CMD_RNDOUT command
The function nand_flash_detect_ext_param_page() requires NAND_CMD_RNDOUT command supported. It is necessary to detect some types of ONFi-compliant devices. Without it, the error message "unsupported command received 0x5" is shown. Let's support this command on the Denali NAND controller driver. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Chin Liang See <clsee@altera.com>
This commit is contained in:
parent
05968e7cfd
commit
ed3c980bee
@ -1072,6 +1072,13 @@ static void denali_cmdfunc(struct mtd_info *mtd, unsigned int cmd, int col,
|
|||||||
if (cmd == NAND_CMD_PARAM)
|
if (cmd == NAND_CMD_PARAM)
|
||||||
udelay(50);
|
udelay(50);
|
||||||
break;
|
break;
|
||||||
|
case NAND_CMD_RNDOUT:
|
||||||
|
addr = MODE_11 | BANK(denali->flash_bank);
|
||||||
|
index_addr(denali, addr | 0, cmd);
|
||||||
|
index_addr(denali, addr | 1, col & 0xFF);
|
||||||
|
index_addr(denali, addr | 1, col >> 8);
|
||||||
|
index_addr(denali, addr | 0, NAND_CMD_RNDOUTSTART);
|
||||||
|
break;
|
||||||
case NAND_CMD_READ0:
|
case NAND_CMD_READ0:
|
||||||
case NAND_CMD_SEQIN:
|
case NAND_CMD_SEQIN:
|
||||||
denali->page = page;
|
denali->page = page;
|
||||||
|
Loading…
Reference in New Issue
Block a user