|
@@ -1,7 +1,7 @@
|
|
|
/*
|
|
|
Common Flash Interface probe code.
|
|
|
(C) 2000 Red Hat. GPL'd.
|
|
|
- $Id: cfi_probe.c,v 1.84 2005/11/07 11:14:23 gleixner Exp $
|
|
|
+ $Id: cfi_probe.c,v 1.85 2005/11/15 23:28:17 tpoynor Exp $
|
|
|
*/
|
|
|
|
|
|
#include <linux/config.h>
|
|
@@ -230,8 +230,8 @@ static int __xipram cfi_chip_setup(struct map_info *map,
|
|
|
cfi_send_gen_cmd(0xaa, 0x555, base, map, cfi, cfi->device_type, NULL);
|
|
|
cfi_send_gen_cmd(0x55, 0x2aa, base, map, cfi, cfi->device_type, NULL);
|
|
|
cfi_send_gen_cmd(0x90, 0x555, base, map, cfi, cfi->device_type, NULL);
|
|
|
- cfi->mfr = cfi_read_query(map, base);
|
|
|
- cfi->id = cfi_read_query(map, base + ofs_factor);
|
|
|
+ cfi->mfr = cfi_read_query16(map, base);
|
|
|
+ cfi->id = cfi_read_query16(map, base + ofs_factor);
|
|
|
|
|
|
/* Put it back into Read Mode */
|
|
|
cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
|