summaryrefslogtreecommitdiffstats
path: root/ni845x_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ni845x_spi.c')
-rw-r--r--ni845x_spi.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/ni845x_spi.c b/ni845x_spi.c
index df8ae0d7f..215351067 100644
--- a/ni845x_spi.c
+++ b/ni845x_spi.c
@@ -538,7 +538,7 @@ static const struct spi_master spi_programmer_ni845x = {
.write_aai = default_spi_write_aai,
};
-int ni845x_spi_init(void)
+static int ni845x_spi_init(void)
{
char *speed_str = NULL;
char *CS_str = NULL;
@@ -634,3 +634,13 @@ int ni845x_spi_init(void)
return 0;
}
+
+const struct programmer_entry programmer_ni845x_spi = {
+ .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,
+};