summaryrefslogtreecommitdiffstats
path: root/programmer.h
diff options
context:
space:
mode:
Diffstat (limited to 'programmer.h')
-rw-r--r--programmer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/programmer.h b/programmer.h
index e3ffa9f..301f3ff 100644
--- a/programmer.h
+++ b/programmer.h
@@ -108,6 +108,9 @@ enum programmer {
#if CONFIG_PICKIT2_SPI == 1
PROGRAMMER_PICKIT2_SPI,
#endif
+#if CONFIG_CH341A_SPI == 1
+ PROGRAMMER_CH341A_SPI,
+#endif
PROGRAMMER_INVALID /* This must always be the last entry. */
};
@@ -526,6 +529,13 @@ int linux_spi_init(void);
int dediprog_init(void);
#endif
+/* ch341a_spi.c */
+#if CONFIG_CH341A_SPI == 1
+int ch341a_spi_init(void);
+void ch341a_spi_delay(unsigned int usecs);
+extern const struct dev_entry devs_ch341a_spi[];
+#endif
+
/* flashrom.c */
struct decode_sizes {
uint32_t parallel;
@@ -585,6 +595,9 @@ enum spi_controller {
#if CONFIG_PICKIT2_SPI == 1
SPI_CONTROLLER_PICKIT2,
#endif
+#if CONFIG_CH341A_SPI == 1
+ SPI_CONTROLLER_CH341A_SPI,
+#endif
};
#define MAX_DATA_UNSPECIFIED 0
OpenPOWER on IntegriCloud