Nick: oschemes E-mail: admin at openschemes dot com Board: for Chingis PM25LQ032 Contents: This is not program output, it's patches for the PM25LQ032 (4MByte SPI flash) In flashchips.h, in PMC section. Add #define PMC_PM25LQ032 0x46 In flashchips.c, in PMC section. Add { .vendor = "PMC", .name = "Pm25LQ032", .bustype = BUS_SPI, .manufacture_id = PMC_ID, .model_id = PMC_PM25LQ032, .total_size = 4096, .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, 1024} }, .block_erase = spi_block_erase_d7, }, { .eraseblocks = { {64 * 1024, 64} }, .block_erase = spi_block_erase_d8, }, { .eraseblocks = { {4096 * 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}, },