From: Soeren Apel Date: Wed, 20 Nov 2019 18:56:27 +0000 (+0100) Subject: spiflash: Add support for Atmel AT25xxx X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=358844606b27eeae721e18dbf254451bbfd4e7b1;p=libsigrokdecode.git spiflash: Add support for Atmel AT25xxx --- 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, \