diff mbox series

add AT25DF041B to flash chip list

Message ID d5c4dbaa64da0f9ca27d094171d1eefbeb5a0c74.camel@t-online.de
State New
Headers show
Series add AT25DF041B to flash chip list | expand

Commit Message

Oleg Endo May 29, 2021, 5:43 a.m. UTC
Hi,

The following patch adds the AT25DF041B to the flash chip list.  It's
copy-pasta from the definition of AT25DF041A for the most part.

Please CC me in replies as I'm not subscribed to the list.

Cheers,
Oleg


Change-Id: If0b4adeb963330614eec407687e1189aacc010fb
Signed-off-by: Oleg Endo <olegendo@gcc.gnu.org>
---
 flashchips.c | 38 ++++++++++++++++++++++++++++++++++++++
 flashchips.h |  1 +
 2 files changed, 39 insertions(+)
diff mbox series

Patch

diff --git a/flashchips.c b/flashchips.c
index 007bcc9..56d25eb 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -1598,6 +1598,44 @@  const struct flashchip flashchips[] = {
 		.voltage	= {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
 	},
 
+	{
+		.vendor		= "Atmel",
+		.name		= "AT25DF041B",
+		.bustype	= BUS_SPI,
+		.manufacture_id	= ATMEL_ID,
+		.model_id	= ATMEL_AT25DF041B,
+		.total_size	= 512,
+		.page_size	= 256,
+		.feature_bits	= FEATURE_WRSR_WREN,
+		.tested		= TEST_OK_PREW,
+		.probe		= probe_spi_rdid,
+		.probe_timing	= TIMING_ZERO,
+		.block_erasers	=
+		{
+			{
+				.eraseblocks = { {4 * 1024, 128} },
+				.block_erase = spi_block_erase_20,
+			}, {
+				.eraseblocks = { {32 * 1024, 16} },
+				.block_erase = spi_block_erase_52,
+			}, {
+				.eraseblocks = { {64 * 1024, 8} },
+				.block_erase = spi_block_erase_d8,
+			}, {
+				.eraseblocks = { {512 * 1024, 1} },
+				.block_erase = spi_block_erase_60,
+			}, {
+				.eraseblocks = { {512 * 1024, 1} },
+				.block_erase = spi_block_erase_c7,
+			}
+		},
+		.printlock	= spi_prettyprint_status_register_at25df,
+		.unlock		= spi_disable_blockprotect_at2x_global_unprotect,
+		.write		= spi_chip_write_256,
+		.read		= spi_chip_read,
+		.voltage	= {1650, 3600},
+	},
+
 	{
 		.vendor		= "Atmel",
 		.name		= "AT25DF081",
diff --git a/flashchips.h b/flashchips.h
index b6b75c8..d9b964c 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -130,6 +130,7 @@ 
 #define ATMEL_AT25DF021		0x4300
 #define ATMEL_AT25DF021A	0x4301
 #define ATMEL_AT25DF041A	0x4401
+#define ATMEL_AT25DF041B	0x4402
 #define ATMEL_AT25DF081		0x4502	/* EDI 0x00. AT25DL081 has same ID + EDI 0x0100 */
 #define ATMEL_AT25DF081A	0x4501	/* Yes, 81A has a lower number than 81 */
 #define ATMEL_AT25DF161		0x4602