Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93043
b: refs/heads/master
c: fecb886
h: refs/heads/master
i:
  93041: b589680
  93039: 50df01f
v: v3
  • Loading branch information
Trent Piepho authored and David Woodhouse committed Apr 22, 2008
1 parent ebb907c commit bfb56a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ff6631be150702ed4c92b46b77941affee866ba
refs/heads/master: fecb8865def541ff38f59ef3caf0cbd09f4fc9fd
5 changes: 5 additions & 0 deletions trunk/drivers/mtd/chips/cfi_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ static int __xipram cfi_chip_setup(struct map_info *map,
cfi->mfr = cfi_read_query16(map, base);
cfi->id = cfi_read_query16(map, base + ofs_factor);

/* Get AMD/Spansion extended JEDEC ID */
if (cfi->mfr == CFI_MFR_AMD && (cfi->id & 0xff) == 0x7e)
cfi->id = cfi_read_query(map, base + 0xe * ofs_factor) << 8 |
cfi_read_query(map, base + 0xf * ofs_factor);

/* Put it back into Read Mode */
cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
/* ... even if it's an Intel chip */
Expand Down

0 comments on commit bfb56a5

Please sign in to comment.