diff options
author | Marc Schink <flashrom-dev@marcschink.de> | 2016-03-17 16:23:03 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-01-05 16:25:04 +0000 |
commit | 3578ec6a3d7187438c4093f4bb7ac2bb6d4184cb (patch) | |
tree | 53c7ccc03fa21dcd4664e6fb1b48a9ec1661e023 /programmer.h | |
parent | 9cecc7e25dc3fe27a801a745410825cfc2cfaac3 (diff) | |
download | flashrom-3578ec6a3d7187438c4093f4bb7ac2bb6d4184cb.tar.gz flashrom-3578ec6a3d7187438c4093f4bb7ac2bb6d4184cb.tar.bz2 flashrom-3578ec6a3d7187438c4093f4bb7ac2bb6d4184cb.zip |
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>
Diffstat (limited to 'programmer.h')
-rw-r--r-- | programmer.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/programmer.h b/programmer.h index 311992a0..8bf7d294 100644 --- a/programmer.h +++ b/programmer.h @@ -118,6 +118,9 @@ enum programmer { #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 |