summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-10-03 20:03:04 +0900
committerScott Wood <scottwood@freescale.com>2014-10-09 17:33:26 -0500
commited3c980bee74dc1bd599dd44b41b2c32ee78c0a8 (patch)
tree65c3606979618fe7e40960f3b5fd79d0286cd823 /drivers
parent05968e7cfd5dcc50cfe51d03d119a5e9d77bd07c (diff)
downloadu-boot-imx-ed3c980bee74dc1bd599dd44b41b2c32ee78c0a8.zip
u-boot-imx-ed3c980bee74dc1bd599dd44b41b2c32ee78c0a8.tar.gz
u-boot-imx-ed3c980bee74dc1bd599dd44b41b2c32ee78c0a8.tar.bz2
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/denali.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index d9abc7e..308b784 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1072,6 +1072,13 @@ static void denali_cmdfunc(struct mtd_info *mtd, unsigned int cmd, int col,
if (cmd == NAND_CMD_PARAM)
udelay(50);
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_SEQIN:
denali->page = page;