1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00

Add support for the Microchip PICkit2 as an SPI programmer

This patch was inspired by the code in AVRDude (open source Atmel AVR
programmer) to support the PICkit2 written by Doug Brown [1]. The
Dediprog code in flashrom was used as the template for this code with
some reference to the ft2232 code as well.

[1] - https://github.com/steve-m/avrdude/blob/master/pickit2.c

Corresponding to flashrom svn r1881.

Signed-off-by: Justin Chevrier <jchevrier@gmail.com>
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
Justin Chevrier
2015-02-08 21:58:10 +00:00
committed by Stefan Tauner
parent 5673450316
commit 66e554bc88
5 changed files with 582 additions and 4 deletions

View File

@ -366,6 +366,19 @@ const struct programmer_entry programmer_table[] = {
},
#endif
#if CONFIG_PICKIT2_SPI == 1
{
.name = "pickit2_spi",
.type = OTHER,
/* FIXME */
.devs.note = "Microchip PICkit2\n",
.init = pickit2_spi_init,
.map_flash_region = fallback_map,
.unmap_flash_region = fallback_unmap,
.delay = internal_delay,
},
#endif
{0}, /* This entry corresponds to PROGRAMMER_INVALID. */
};