mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 14:33:18 +02:00
Add support for WCH CH341A as an SPI programmer
Corresponding to flashrom svn r1921. Signed-off-by: Urja Rannikko <urjaman@gmail.com> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Urja Rannikko <urjaman@gmail.com>
This commit is contained in:

committed by
Stefan Tauner

parent
e49edbb898
commit
0870b02516
13
programmer.h
13
programmer.h
@ -107,6 +107,9 @@ enum programmer {
|
||||
#endif
|
||||
#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
|
||||
|
Reference in New Issue
Block a user