projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
still working
[goodfet]
/
client
/
GoodFETSPI.py
diff --git
a/client/GoodFETSPI.py
b/client/GoodFETSPI.py
index
021c7e6
..
0020ec2
100644
(file)
--- a/
client/GoodFETSPI.py
+++ b/
client/GoodFETSPI.py
@@
-30,7
+30,8
@@
class GoodFETSPIFlash(GoodFETSPI):
0xEF: "Winbond",
0xC2: "MXIC",
0x20: "Numonyx/ST",
0xEF: "Winbond",
0xC2: "MXIC",
0x20: "Numonyx/ST",
- 0x1F: "Atmel"
+ 0x1F: "Atmel",
+ 0x01: "AMD/Spansion"
};
JEDECdevices={0xFFFFFF: "MISSING",
};
JEDECdevices={0xFFFFFF: "MISSING",
@@
-93,16
+94,12
@@
class GoodFETSPIFlash(GoodFETSPI):
self.SPIpokebytes(adr,[val]);
def SPIpokebytes(self,adr,data):
#Used to be 24 bits, BE, not 32 bits, LE.
self.SPIpokebytes(adr,[val]);
def SPIpokebytes(self,adr,data):
#Used to be 24 bits, BE, not 32 bits, LE.
-# adranddata=[(adr&0xFF0000)>>16,
-# (adr&0xFF00)>>8,
-# adr&0xFF
-# ]+data;
adranddata=[adr&0xFF,
(adr&0xFF00)>>8,
(adr&0xFF0000)>>16,
0, #MSB
]+data;
adranddata=[adr&0xFF,
(adr&0xFF00)>>8,
(adr&0xFF0000)>>16,
0, #MSB
]+data;
-
+ #print "%06x: poking %i bytes" % (adr,len(data));
self.writecmd(0x01,0x03,
len(adranddata),adranddata);
self.writecmd(0x01,0x03,
len(adranddata),adranddata);