From 4f5169df5ff2b63a40d654ab133b8a3108b6a599 Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Tue, 4 May 2021 15:32:17 +0200 Subject: programmer_table: move each entry to the associated programmer source Change-Id: I3d02bd789f0299e936eb86819b3b15b5ea2bb921 Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/52946 Tested-by: build bot (Jenkins) Reviewed-by: Anastasia Klimchuk Reviewed-by: Nico Huber --- pony_spi.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'pony_spi.c') 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, +}; -- cgit v1.2.3