diff options
| author | nybash <ny.bash@gmail.com> | 2018-02-11 17:53:49 -0800 | 
|---|---|---|
| committer | David Hendricks <david.hendricks@gmail.com> | 2018-02-21 17:40:03 +0000 | 
| commit | cbb46e261d5f2837df21e0853c7cd4170d226b40 (patch) | |
| tree | 04e07a8adc469d232a07c56fe1d43d867270b551 | |
| parent | 8c7e78b9deaa550339940a2efd7bcaef03267751 (diff) | |
| download | flashrom-cbb46e261d5f2837df21e0853c7cd4170d226b40.tar.gz flashrom-cbb46e261d5f2837df21e0853c7cd4170d226b40.tar.bz2 flashrom-cbb46e261d5f2837df21e0853c7cd4170d226b40.zip  | |
flashchips: Add Zettadevice ZD25D40
This introduces the Zettadevice manufacturer ID and adds support for the
ZD25D40 chip.
Based on PR20 from Github.
Change-Id: I0400b059ddacdf166d1b77f619becec3a250cece
Signed-off-by: David Hendricks <david.hendricks@gmail.com>
Reviewed-on: https://review.coreboot.org/23701
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
| -rw-r--r-- | flashchips.c | 40 | ||||
| -rw-r--r-- | flashchips.h | 3 | 
2 files changed, 42 insertions, 1 deletions
diff --git a/flashchips.c b/flashchips.c index 0d851427..1d458102 100644 --- a/flashchips.c +++ b/flashchips.c @@ -16329,7 +16329,45 @@ const struct flashchip flashchips[] = {  		.read		= read_memmapped,  		.voltage	= {3000, 3600}, /* Also has 12V fast program */  	}, -	 + +	{ +		.vendor         = "Zetta Device", +		.name           = "ZD25D40", +		.bustype        = BUS_SPI, +		.manufacture_id = ZETTADEVICE_ID, +		.model_id       = ZETTADEVICE_ZD25D40, +		.total_size     = 512, +		.page_size      = 256, +		.feature_bits   = FEATURE_WRSR_WREN, +		.tested         = TEST_UNTESTED, +		.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_plain, /* TODO: improve */ +		.unlock         = spi_disable_blockprotect, +		.write          = spi_chip_write_256, +		.read           = spi_chip_read, +		.voltage        = {2700, 3600}, +	}, +  	{  		.vendor		= "Unknown",  		.name		= "SFDP-capable chip", diff --git a/flashchips.h b/flashchips.h index f487248e..8c07628b 100644 --- a/flashchips.h +++ b/flashchips.h @@ -957,4 +957,7 @@  #define WINBOND_W49V002A	0xB0  #define WINBOND_W49V002FA	0x32 +#define ZETTADEVICE_ID          0xBA	/* Zetta Device */ +#define ZETTADEVICE_ZD25D40     0x2013 +  #endif /* !FLASHCHIPS_H */  | 
