diff options
author | Enrico Jorns <ejo@pengutronix.de> | 2015-09-21 16:04:43 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-09-23 10:35:37 +0200 |
commit | 16a6d8a674fb9ebc86dec77b50dbe74dabd9beeb (patch) | |
tree | 7ba4bcc2e3066fae3d6d590eb1f79b79780aa160 | |
parent | aca725cc865e5dad8d4e0c1e3639d54f243964dc (diff) | |
download | barebox-16a6d8a674fb9ebc86dec77b50dbe74dabd9beeb.tar.gz barebox-16a6d8a674fb9ebc86dec77b50dbe74dabd9beeb.tar.xz |
mtd denali: pass col argument to READID operation
A read id operation followed by 0x00 reads the device ID while
a read id operation followed by 0x20 reads the possible ONFI identifier.
As the READID function did not propagate the second id parameter but had
a hard-coded call for 0x90 0x00, reading the ONFI identifier was not
possible and thus chips werde not detected (tested with
MT29F8G08ABABAWP)
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/mtd/nand/nand_denali.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_denali.c b/drivers/mtd/nand/nand_denali.c index a334dfb42e..d2e51e2568 100644 --- a/drivers/mtd/nand/nand_denali.c +++ b/drivers/mtd/nand/nand_denali.c @@ -1251,7 +1251,7 @@ static void denali_cmdfunc(struct mtd_info *mtd, unsigned int cmd, int col, */ addr = MODE_11 | BANK(denali->flash_bank); index_addr(denali, addr | 0, 0x90); - index_addr(denali, addr | 1, 0); + index_addr(denali, addr | 1, col); for (i = 0; i < 8; i++) { index_addr_read_data(denali, addr | 2, &id); write_byte_to_buf(denali, id); |