aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r--drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c b/drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c
index 30df67a914b2..82844efcf189 100644
--- a/drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c
+++ b/drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c
@@ -14,6 +14,7 @@
14#include <linux/module.h> 14#include <linux/module.h>
15#include <linux/kernel.h> 15#include <linux/kernel.h>
16#include <linux/slab.h> 16#include <linux/slab.h>
17#include <linux/delay.h>
17#include <linux/bcma/bcma.h> 18#include <linux/bcma/bcma.h>
18 19
19/* Broadcom uses 1'000'000 but it seems to be too many. Tests on WNDR4500 has 20/* Broadcom uses 1'000'000 but it seems to be too many. Tests on WNDR4500 has
@@ -226,7 +227,10 @@ static void bcm47xxnflash_ops_bcm4706_cmdfunc(struct mtd_info *mtd,
226 227
227 switch (command) { 228 switch (command) {
228 case NAND_CMD_RESET: 229 case NAND_CMD_RESET:
229 pr_warn("Chip reset not implemented yet\n"); 230 nand_chip->cmd_ctrl(mtd, command, NAND_CTRL_CLE);
231
232 ndelay(100);
233 nand_wait_ready(mtd);
230 break; 234 break;
231 case NAND_CMD_READID: 235 case NAND_CMD_READID:
232 ctlcode = NCTL_CSA | 0x01000000 | NCTL_CMD1W | NCTL_CMD0; 236 ctlcode = NCTL_CSA | 0x01000000 | NCTL_CMD1W | NCTL_CMD0;