diff options
author | Soeren Apel <soeren@apelpie.net> | 2019-11-20 19:56:27 +0100 |
---|---|---|
committer | Soeren Apel <soeren@apelpie.net> | 2019-11-20 19:57:05 +0100 |
commit | 358844606b27eeae721e18dbf254451bbfd4e7b1 (patch) | |
tree | 17eb3abaaa28daad1819241b383be502286ca9ba | |
parent | e2768fbcdeba97d10c2beaea709412e6fb8b047d (diff) | |
download | libsigrokdecode-358844606b27eeae721e18dbf254451bbfd4e7b1.tar.gz libsigrokdecode-358844606b27eeae721e18dbf254451bbfd4e7b1.zip |
spiflash: Add support for Atmel AT25xxx
-rw-r--r-- | decoders/spiflash/lists.py | 23 | ||||
-rw-r--r-- | decoders/spiflash/pd.py | 2 |
2 files changed, 24 insertions, 1 deletions
diff --git a/decoders/spiflash/lists.py b/decoders/spiflash/lists.py index 5c366be..4bdc6dd 100644 --- a/decoders/spiflash/lists.py +++ b/decoders/spiflash/lists.py @@ -83,6 +83,29 @@ chips = { 'sector_size': 128 * 1024, 'block_size': 4 * 1024, }, + # Atmel + 'atmel_at25128': { + 'vendor': 'Atmel', + 'model': 'AT25128', + 'res_id': 0xff, # The chip doesn't emit an ID. + 'rems_id': 0xffff, # Not supported by the chip. + 'rems2_id': 0xffff, # Not supported by the chip. + 'rdid_id': 0xffffff, # Not supported by the chip. + 'page_size': 64, + 'sector_size': 16 * 1024, + 'block_size': 1, + }, + 'atmel_at25256': { + 'vendor': 'Atmel', + 'model': 'AT25256', + 'res_id': 0xff, # The chip doesn't emit an ID. + 'rems_id': 0xffff, # Not supported by the chip. + 'rems2_id': 0xffff, # Not supported by the chip. + 'rdid_id': 0xffffff, # Not supported by the chip. + 'page_size': 64, + 'sector_size': 32 * 1024, + 'block_size': 1, + }, # FIDELIX 'fidelix_fm25q32': { 'vendor': 'FIDELIX', diff --git a/decoders/spiflash/pd.py b/decoders/spiflash/pd.py index ad92023..33fe229 100644 --- a/decoders/spiflash/pd.py +++ b/decoders/spiflash/pd.py @@ -22,7 +22,7 @@ from .lists import * L = len(cmds) -# Don't forget to keep this in sync with 'cmds' is lists.py. +# Don't forget to keep this in sync with 'cmds' in lists.py. class Ann: WRSR, PP, READ, WRDI, RDSR, WREN, FAST_READ, SE, RDSCUR, WRSCUR, \ RDSR2, CE, ESRY, DSRY, WRITE1, WRITE2, REMS, RDID, RDP_RES, CP, ENSO, DP, \ |