summaryrefslogtreecommitdiffstats
path: root/pony_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'pony_spi.c')
-rw-r--r--pony_spi.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/pony_spi.c b/pony_spi.c
index 6d5db6f3c..6005bd4c2 100644
--- a/pony_spi.c
+++ b/pony_spi.c
@@ -120,7 +120,7 @@ static int pony_spi_shutdown(void *data)
return ret;
}
-int pony_spi_init(void)
+static int pony_spi_init(void)
{
int i, data_out;
char *arg = NULL;
@@ -250,3 +250,14 @@ int pony_spi_init(void)
return 0;
}
+
+const struct programmer_entry programmer_pony_spi = {
+ .name = "pony_spi",
+ .type = OTHER,
+ /* FIXME */
+ .devs.note = "Programmers compatible with SI-Prog, serbang or AJAWe\n",
+ .init = pony_spi_init,
+ .map_flash_region = fallback_map,
+ .unmap_flash_region = fallback_unmap,
+ .delay = internal_delay,
+};