summaryrefslogtreecommitdiffstats
path: root/test_build.sh
diff options
context:
space:
mode:
authorNicholas Chin <nic.c3.14@gmail.com>2022-10-23 13:10:31 -0600
committerThomas Heijligen <src@posteo.de>2023-02-27 10:13:01 +0000
commit0facf12ca413adbe803c819f55938e41c440dde5 (patch)
treebda1308afa5f96369d99f0720ab2d5a75c0ccc17 /test_build.sh
parent83b051a9b4080382bef1c1b3366b2c4d3b52b979 (diff)
downloadflashrom-0facf12ca413adbe803c819f55938e41c440dde5.tar.gz
flashrom-0facf12ca413adbe803c819f55938e41c440dde5.tar.bz2
flashrom-0facf12ca413adbe803c819f55938e41c440dde5.zip
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>
Diffstat (limited to 'test_build.sh')
-rwxr-xr-xtest_build.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/test_build.sh b/test_build.sh
index 0e9d7047a..9b490dc3d 100755
--- a/test_build.sh
+++ b/test_build.sh
@@ -10,15 +10,15 @@ make_programmer_opts="INTERNAL INTERNAL_X86 SERPROG RAYER_SPI RAIDEN_DEBUG_SPI P
PICKIT2_SPI STLINKV3_SPI PARADE_LSPCON MEDIATEK_I2C_SPI REALTEK_MST_I2C_SPI DUMMY \
DRKAISER NICREALTEK NICNATSEMI NICINTEL NICINTEL_SPI NICINTEL_EEPROM OGP_SPI \
BUSPIRATE_SPI DEDIPROG DEVELOPERBOX_SPI SATAMV LINUX_MTD LINUX_SPI IT8212 \
- CH341A_SPI DIGILENT_SPI DIRTYJTAG_SPI JLINK_SPI ASM106X"
-
-meson_programmer_opts="all auto group_ftdi group_i2c group_jlink group_pci group_serial group_usb \
- atahpt atapromise atavia buspirate_spi ch341a_spi dediprog developerbox_spi \
- digilent_spi dirtyjtag_spi drkaiser dummy ft2232_spi gfxnvidia internal it8212 \
- jlink_spi linux_mtd linux_spi parade_lspcon mediatek_i2c_spi mstarddc_spi \
- nic3com nicintel nicintel_eeprom nicintel_spi nicnatsemi nicrealtek \
- ogp_spi pickit2_spi pony_spi raiden_debug_spi rayer_spi realtek_mst_i2c_spi \
- satamv satasii serprog stlinkv3_spi usbblaster_spi asm106x"
+ CH341A_SPI CH347_SPI DIGILENT_SPI DIRTYJTAG_SPI JLINK_SPI ASM106X"
+
+meson_programmer_opts="all auto group_ftdi group_i2c group_jlink group_pci group_serial group_usb \
+ atahpt atapromise atavia buspirate_spi ch341a_spi ch347_spi dediprog \
+ developerbox_spi digilent_spi dirtyjtag_spi drkaiser dummy ft2232_spi \
+ gfxnvidia internal it8212 jlink_spi linux_mtd linux_spi parade_lspcon \
+ mediatek_i2c_spi mstarddc_spi nic3com nicintel nicintel_eeprom nicintel_spi \
+ nicnatsemi nicrealtek ogp_spi pickit2_spi pony_spi raiden_debug_spi rayer_spi \
+ realtek_mst_i2c_spi satamv satasii serprog stlinkv3_spi usbblaster_spi asm106x"
if [ "$(basename "${CC}")" = "ccc-analyzer" ] || [ -n "${COVERITY_OUTPUT}" ]; then