Attention is currently required from: Felix Singer, Thomas Heijligen, Angel Pons, Anastasia Klimchuk.

Steve Markgraf uploaded patch set #3 to this change.

View Change

programmer: Add bitbanging programmer driver for Linux libgpiod

With this driver, any single board computer, old smartphone, etc. with
a few spare GPIOs can be used for flashrom.

An example invocation looks like this:

flashrom -p linux_gpiod:gpiochip=0,cs=18,sck=19,mosi=13,miso=56

This uses /dev/gpiochip0 with the specified GPIO numbers for the SPI
lines. All arguments are required.

Reading of a 2048 kB flash chip on a Qualcomm MSM8916 SoC @800 MHz:

Found GigaDevice flash chip "GD25LQ16" (2048 kB, SPI) on linux_gpiod.
real 1m 33.96s

Change-Id: Icad3eb7764f28feaea51bda3a7893da724c86d06
Signed-off-by: Steve Markgraf <steve@steve-m.de>
---
M MAINTAINERS
M Makefile
M README
M flashrom.8.tmpl
M include/programmer.h
A linux_gpiod.c
M meson.build
M meson_options.txt
M programmer_table.c
9 files changed, 266 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/01/71801/3

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

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Icad3eb7764f28feaea51bda3a7893da724c86d06
Gerrit-Change-Number: 71801
Gerrit-PatchSet: 3
Gerrit-Owner: Steve Markgraf <steve@steve-m.de>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Felix Singer <felixsinger@posteo.net>
Gerrit-Reviewer: Thomas Heijligen <src@posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Attention: Felix Singer <felixsinger@posteo.net>
Gerrit-Attention: Thomas Heijligen <src@posteo.de>
Gerrit-Attention: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-MessageType: newpatchset