Attention is currently required from: Angel Pons, qianfan.

qianfan uploaded patch set #8 to this change.

View Change

Add initial CH347T SPI programmer

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 a CS0 and a SPI clock of 7.5 MHz, though
there are 2 CS lines and 6 other GPIO lines available, as well as a
configurable clock divisor. 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.

Change-Id: I6da5e308af76693e60308c8165349128e517e09a
Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Tested-by: Nicholas Chin with MX25L1606E
Tested-by: qianfan Zhao with W25Q16.V
---
M Makefile
A ch347t_spi.c
M include/programmer.h
M programmer_table.c
4 files changed, 547 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/29/70529/8

To view, visit change 70529. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I6da5e308af76693e60308c8165349128e517e09a
Gerrit-Change-Number: 70529
Gerrit-PatchSet: 8
Gerrit-Owner: qianfan <qianfanguijin@163.com>
Gerrit-Reviewer: Angel Pons <angel.pons@9elements.com>
Gerrit-Reviewer: Nicholas Chin <nic.c3.14@gmail.com>
Gerrit-Reviewer: Thomas Heijligen <src@posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: qianfan <qianfanguijin@163.com>
Gerrit-Attention: Angel Pons <angel.pons@9elements.com>
Gerrit-MessageType: newpatchset