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

Add initial J-Link SPI programmer

Tested with SEGGER J-Link EDU, Flasher ARM and flash chip W25Q16.V.

Change-Id: Ie03a054a75457ec9e1cab36ea124bb53b10e8d7e
Signed-off-by: Marc Schink <flashrom-dev@marcschink.de>
Reviewed-on: https://review.coreboot.org/c/28087
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Marc Schink
2016-03-17 16:23:03 +01:00
committed by Nico Huber
parent 9cecc7e25d
commit 3578ec6a3d
6 changed files with 592 additions and 1 deletions

View File

@ -117,6 +117,9 @@ enum programmer {
#endif
#if CONFIG_DIGILENT_SPI == 1
PROGRAMMER_DIGILENT_SPI,
#endif
#if CONFIG_JLINK_SPI == 1
PROGRAMMER_JLINK_SPI,
#endif
PROGRAMMER_INVALID /* This must always be the last entry. */
};
@ -573,6 +576,11 @@ int digilent_spi_init(void);
extern const struct dev_entry devs_digilent_spi[];
#endif
/* jlink_spi.c */
#if CONFIG_JLINK_SPI == 1
int jlink_spi_init(void);
#endif
/* flashrom.c */
struct decode_sizes {
uint32_t parallel;
@ -641,6 +649,9 @@ enum spi_controller {
#if CONFIG_DIGILENT_SPI == 1
SPI_CONTROLLER_DIGILENT_SPI,
#endif
#if CONFIG_JLINK_SPI == 1
SPI_CONTROLLER_JLINK_SPI,
#endif
};
#define MAX_DATA_UNSPECIFIED 0