mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
programmer_table: move each entry to the associated programmer source
Change-Id: I3d02bd789f0299e936eb86819b3b15b5ea2bb921 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52946 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:

committed by
Nico Huber

parent
085db626fb
commit
4f5169df5f
@ -53,7 +53,7 @@ struct digilent_spi_data {
|
||||
#define DIGILENT_VID 0x1443
|
||||
#define DIGILENT_JTAG_PID 0x0007
|
||||
|
||||
const struct dev_entry devs_digilent_spi[] = {
|
||||
static const struct dev_entry devs_digilent_spi[] = {
|
||||
{ DIGILENT_VID, DIGILENT_JTAG_PID, OK, "Digilent", "Development board JTAG" },
|
||||
{ 0 },
|
||||
};
|
||||
@ -373,7 +373,7 @@ static const struct digilent_spispeeds spispeeds[] = {
|
||||
{ NULL, 0 },
|
||||
};
|
||||
|
||||
int digilent_spi_init(void)
|
||||
static int digilent_spi_init(void)
|
||||
{
|
||||
char *p;
|
||||
uint32_t speed_hz = spispeeds[0].speed;
|
||||
@ -464,3 +464,13 @@ close_handle:
|
||||
libusb_close(handle);
|
||||
return -1;
|
||||
}
|
||||
|
||||
const struct programmer_entry programmer_digilent_spi = {
|
||||
.name = "digilent_spi",
|
||||
.type = USB,
|
||||
.devs.dev = devs_digilent_spi,
|
||||
.init = digilent_spi_init,
|
||||
.map_flash_region = fallback_map,
|
||||
.unmap_flash_region = fallback_unmap,
|
||||
.delay = internal_delay,
|
||||
};
|
||||
|
Reference in New Issue
Block a user