summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorMiklós Márton <martonmiklosqdev@gmail.com>2018-01-30 20:20:15 +0100
committerNico Huber <nico.h@gmx.de>2019-11-14 22:40:21 +0000
commit2d20d6db39547f013b66230f378ceb8e21fa36e3 (patch)
tree7816f91833c2540ec74f97fe5de4ad4dd81165e0 /flashrom.c
parent1a119498b43a8ed934bcfa0a16465aa4d6d2c74d (diff)
downloadflashrom-2d20d6db39547f013b66230f378ceb8e21fa36e3.tar.gz
flashrom-2d20d6db39547f013b66230f378ceb8e21fa36e3.tar.bz2
flashrom-2d20d6db39547f013b66230f378ceb8e21fa36e3.zip
Add support for National Instruments USB-845x devices
Change-Id: I9477b6f0193bfdf20bbe63421a7fb97b597ec549 Signed-off-by: Miklós Márton <martonmiklosqdev@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/25683 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c
index 06b18545d..2534e4a7a 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -449,6 +449,17 @@ const struct programmer_entry programmer_table[] = {
},
#endif
+#if CONFIG_NI845X_SPI == 1
+ {
+ .name = "ni845x_spi",
+ .type = OTHER, // choose other because NI-845x uses own USB implementation
+ .devs.note = "National Instruments USB-845x\n",
+ .init = ni845x_spi_init,
+ .map_flash_region = fallback_map,
+ .unmap_flash_region = fallback_unmap,
+ .delay = internal_delay,
+ },
+#endif
{0}, /* This entry corresponds to PROGRAMMER_INVALID. */
};