From b2154e8a1d456875122cbbff2a18e5e1c55ef4d2 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Sun, 14 Jan 2018 17:35:33 +0100 Subject: digilent_spi: add a driver for the iCEblink40 development board This is driver that supports the Lattice iCE40 evaluation kits. On the board is a SPI flash memory chip labeled ST 25P10VP. Tested to work read/write/erase with "-p digilent_spi -c M25P10" or with a patch that resets the part beforehands (in which case it gets detected as a M25P10-A and is way faster due to paged writes). Change-Id: I7ffcd9a2db4395816f0e8b6ce6c3b0d8e930c9e6 Signed-off-by: Lubomir Rintel Reviewed-on: https://review.coreboot.org/23338 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- flashrom.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'flashrom.c') diff --git a/flashrom.c b/flashrom.c index f85dbb1f..1866a18a 100644 --- a/flashrom.c +++ b/flashrom.c @@ -413,6 +413,18 @@ const struct programmer_entry programmer_table[] = { }, #endif +#if CONFIG_DIGILENT_SPI == 1 + { + .name = "digilent_spi", + .type = USB, + .devs.dev = devs_digilent_spi, + .init = digilent_spi_init, + .map_flash_region = fallback_map, + .unmap_flash_region = fallback_unmap, + .delay = internal_delay, + }, +#endif + {0}, /* This entry corresponds to PROGRAMMER_INVALID. */ }; -- cgit v1.2.3