[flashrom] [PATCH] Convert chips to block erasers: Numonyx, PMC, Sanyo, Spansion
Uwe Hermann
uwe at hermann-uwe.de
Mon Jan 18 10:50:15 CET 2010
On Mon, Jan 18, 2010 at 12:06:02AM -0800, Sean Nelson wrote:
> {
> .vendor = "Numonyx",
> .name = "M25PE40",
> .bustype = CHIP_BUSTYPE_SPI,
> .manufacture_id = ST_ID,
> .model_id = ST_M25PE40,
> - .total_size = 256,
> + .total_size = 512,
Nice catch btw! This was indeed incorrect if I read the datasheet
correctly.
> .page_size = 256,
> .tested = TEST_UNTESTED,
> .probe = probe_spi_rdid,
> .probe_timing = TIMING_ZERO,
> - .erase = spi_chip_erase_d8,
> + .erase = NULL,
> + .block_erasers =
> + {
> + {
> + .eraseblocks = { {4 * 1024, 128} },
> + .block_erase = spi_block_erase_20,
> + }, {
> + .eraseblocks = { {64 * 1024, 8} },
> + .block_erase = spi_block_erase_d8,
> + }, {
> + .eraseblocks = { {512 * 1024, 1} },
> + .block_erase = spi_block_erase_c7,
> + }
> + },
Uwe.
--
http://www.hermann-uwe.de | http://www.randomprojects.org
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
More information about the flashrom
mailing list