summaryrefslogtreecommitdiffstats
path: root/programmer.h
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-01-14 17:35:33 +0100
committerNico Huber <nico.h@gmx.de>2018-06-26 10:02:38 +0000
commitb2154e8a1d456875122cbbff2a18e5e1c55ef4d2 (patch)
treeee5cf1e29adf35b89d6078ba117638b4009cfd89 /programmer.h
parentac01baa073b0f154ffd3ffdc7c9e75987f8b525c (diff)
downloadflashrom-b2154e8a1d456875122cbbff2a18e5e1c55ef4d2.tar.gz
flashrom-b2154e8a1d456875122cbbff2a18e5e1c55ef4d2.tar.bz2
flashrom-b2154e8a1d456875122cbbff2a18e5e1c55ef4d2.zip
digilent_spi: add a driver for the iCEblink40 development board
This is driver that supports the Lattice iCE40 evaluation kits. On the board is a SPI flash memory chip labeled ST 25P10VP. Tested to work read/write/erase with "-p digilent_spi -c M25P10" or with a patch that resets the part beforehands (in which case it gets detected as a M25P10-A and is way faster due to paged writes). Change-Id: I7ffcd9a2db4395816f0e8b6ce6c3b0d8e930c9e6 Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-on: https://review.coreboot.org/23338 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'programmer.h')
-rw-r--r--programmer.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/programmer.h b/programmer.h
index e49f2621e..ff81036d8 100644
--- a/programmer.h
+++ b/programmer.h
@@ -112,6 +112,9 @@ enum programmer {
#if CONFIG_CH341A_SPI == 1
PROGRAMMER_CH341A_SPI,
#endif
+#if CONFIG_DIGILENT_SPI == 1
+ PROGRAMMER_DIGILENT_SPI,
+#endif
PROGRAMMER_INVALID /* This must always be the last entry. */
};
@@ -549,6 +552,12 @@ void ch341a_spi_delay(unsigned int usecs);
extern const struct dev_entry devs_ch341a_spi[];
#endif
+/* digilent_spi.c */
+#if CONFIG_DIGILENT_SPI == 1
+int digilent_spi_init(void);
+extern const struct dev_entry devs_digilent_spi[];
+#endif
+
/* flashrom.c */
struct decode_sizes {
uint32_t parallel;
@@ -614,6 +623,9 @@ enum spi_controller {
#if CONFIG_CH341A_SPI == 1
SPI_CONTROLLER_CH341A_SPI,
#endif
+#if CONFIG_DIGILENT_SPI == 1
+ SPI_CONTROLLER_DIGILENT_SPI,
+#endif
};
#define MAX_DATA_UNSPECIFIED 0