mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-06 08:07:07 +02:00
ch347_spi: Add initial support for the WCH CH347
Add support for the WCH CH347, a high-speed USB to bus converter supporting multiple protocols interfaces including SPI. Currently only mode 1 (vendor defined communication interface) is supported, mode 2 (USB HID communication interface) support will be added later. The code is currently hard coded to use CS1 and a SPI clock of 15 MHz, though there are 2 CS lines and 6 other GPIO lines available, as well as a configurable clock divisor for up to 60MHz operation. Support for these will be exposed through programmer parameters in later commits. This currently uses the synchronous libusb API. Performance seems to be alright so far, if it becomes an issue I may switch to the asynchronous API. Tested with a MX25L1606E flash chip Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com> Change-Id: I31b86c41076cc45d4a416a73fa1131350fb745ba Reviewed-on: https://review.coreboot.org/c/flashrom/+/70573 Reviewed-by: Thomas Heijligen <src@posteo.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:

committed by
Thomas Heijligen

parent
83b051a9b4
commit
0facf12ca4
@ -417,6 +417,8 @@ bitbanging adapter)
|
||||
.sp
|
||||
.BR "* ch341a_spi" " (for SPI flash ROMs attached to WCH CH341A)"
|
||||
.sp
|
||||
.BR "* ch347_spi" " (for SPI flash ROMs attached to WCH CH347)"
|
||||
.sp
|
||||
.BR "* digilent_spi" " (for SPI flash ROMs attached to iCEblink40 development boards)"
|
||||
.sp
|
||||
.BR "* jlink_spi" " (for SPI flash ROMs attached to SEGGER J-Link and compatible devices)"
|
||||
@ -1368,6 +1370,10 @@ Please also note that the mstarddc_spi driver only works on Linux.
|
||||
The WCH CH341A programmer does not support any parameters currently. SPI frequency is fixed at 2 MHz, and CS0 is
|
||||
used as per the device.
|
||||
.SS
|
||||
.BR "ch347_spi " programmer
|
||||
The WCH CH347 programmer does not currently support any parameters. SPI frequency is fixed at 2 MHz, and CS0 is
|
||||
used as per the device.
|
||||
.SS
|
||||
.BR "ni845x_spi " programmer
|
||||
.IP
|
||||
An optional
|
||||
|
Reference in New Issue
Block a user