Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195952
b: refs/heads/master
c: 54b93a4
h: refs/heads/master
v: v3
  • Loading branch information
Guillaume LECERF authored and David Woodhouse committed May 14, 2010
1 parent b997e22 commit ba7608c
Show file tree
Hide file tree
Showing 3 changed files with 10 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: ad7026fef6c771fc88ecbcb111876fc050b1a4d0
refs/heads/master: 54b93a49d8dd90dfb658f21a3316527fe6195106
8 changes: 8 additions & 0 deletions trunk/drivers/mtd/chips/cfi_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ static int __xipram cfi_chip_setup(struct map_info *map,
#endif
}

if (cfi->cfiq->P_ID == P_ID_SST_OLD) {
addr_unlock1 = 0x5555;
addr_unlock2 = 0x2AAA;
}

/*
* Note we put the device back into Read Mode BEFORE going into Auto
* Select Mode, as some devices support nesting of modes, others
Expand Down Expand Up @@ -271,6 +276,9 @@ static char *vendorname(__u16 vendor)
case P_ID_SST_PAGE:
return "SST Page Write";

case P_ID_SST_OLD:
return "SST 39VF160x/39VF320x";

case P_ID_INTEL_PERFORMANCE:
return "Intel Performance Code";

Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mtd/cfi.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ struct cfi_bri_query {
#define P_ID_MITSUBISHI_STD 0x0100
#define P_ID_MITSUBISHI_EXT 0x0101
#define P_ID_SST_PAGE 0x0102
#define P_ID_SST_OLD 0x0701
#define P_ID_INTEL_PERFORMANCE 0x0200
#define P_ID_INTEL_DATA 0x0210
#define P_ID_RESERVED 0xffff
Expand Down

0 comments on commit ba7608c

Please sign in to comment.