Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: cfi_util: add support for switching SST 39VF640xB chips into QRY mode

Signed-off-by: Guillaume LECERF <glecerf@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Guillaume LECERF and committed by
David Woodhouse
fc61015f b5d194ce

+7
+7
drivers/mtd/chips/cfi_util.c
··· 77 77 cfi_send_gen_cmd(0x98, 0x5555, base, map, cfi, cfi->device_type, NULL); 78 78 if (cfi_qry_present(map, base, cfi)) 79 79 return 1; 80 + /* SST 39VF640xB */ 81 + cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); 82 + cfi_send_gen_cmd(0xAA, 0x555, base, map, cfi, cfi->device_type, NULL); 83 + cfi_send_gen_cmd(0x55, 0x2AA, base, map, cfi, cfi->device_type, NULL); 84 + cfi_send_gen_cmd(0x98, 0x555, base, map, cfi, cfi->device_type, NULL); 85 + if (cfi_qry_present(map, base, cfi)) 86 + return 1; 80 87 /* QRY not found */ 81 88 return 0; 82 89 }