mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 13:50:53 +07:00
mtd: nand: 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: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
16c863bbf4
commit
9c07d094bb
@ -1304,7 +1304,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);
|
||||
|
Loading…
Reference in New Issue
Block a user