X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETSPI.py;h=0020ec2012b4b27a2334017af39796238ffc66f1;hp=021c7e676369b672a665f76b4e9735a4397eccf9;hb=dd259c9289deb11e84be93647c144192e5ba10b6;hpb=78f4f21969789bec27a8e2957eb00a87d8756041 diff --git a/client/GoodFETSPI.py b/client/GoodFETSPI.py index 021c7e6..0020ec2 100644 --- a/client/GoodFETSPI.py +++ b/client/GoodFETSPI.py @@ -30,7 +30,8 @@ class GoodFETSPIFlash(GoodFETSPI): 0xEF: "Winbond", 0xC2: "MXIC", 0x20: "Numonyx/ST", - 0x1F: "Atmel" + 0x1F: "Atmel", + 0x01: "AMD/Spansion" }; 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. -# adranddata=[(adr&0xFF0000)>>16, -# (adr&0xFF00)>>8, -# adr&0xFF -# ]+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);