Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116045
b: refs/heads/master
c: be8f78b
h: refs/heads/master
i:
  116043: 016ac11
v: v3
  • Loading branch information
Haavard Skinnemoen authored and David Woodhouse committed Oct 18, 2008
1 parent 9100982 commit 4c30e7f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aaf7ea20000436df3cbb397ccb734ad1e2e5164d
refs/heads/master: be8f78b8e8b5bcafc19ac85b815e98049aa86314
16 changes: 12 additions & 4 deletions trunk/drivers/mtd/chips/cfi_cmdset_0002.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,18 @@ static void fixup_convert_atmel_pri(struct mtd_info *mtd, void *param)
if (atmel_pri.Features & 0x02)
extp->EraseSuspend = 2;

if (atmel_pri.BottomBoot)
extp->TopBottom = 2;
else
extp->TopBottom = 3;
/* Some chips got it backwards... */
if (cfi->id == AT49BV6416) {
if (atmel_pri.BottomBoot)
extp->TopBottom = 3;
else
extp->TopBottom = 2;
} else {
if (atmel_pri.BottomBoot)
extp->TopBottom = 2;
else
extp->TopBottom = 3;
}

/* burst write mode not supported */
cfi->cfiq->BufWriteTimeoutTyp = 0;
Expand Down

0 comments on commit 4c30e7f

Please sign in to comment.