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:
11
programmer.h
11
programmer.h
@ -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
|
||||
|
Reference in New Issue
Block a user