aboutsummaryrefslogtreecommitdiffstats
path: root/serprog.c
diff options
context:
space:
mode:
authorAlan Green <avg@google.com>2021-01-08 09:36:45 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2021-01-24 11:10:01 +0000
commit25a5bceb930b6db3f29b1af58133ebbd8ea5f85c (patch)
treeff91835560f5dc2bcd7b57440f3b5df29ca07f1a /serprog.c
parent83847ff40780b36c4f103e8d78a7bbcc0b585767 (diff)
downloadflashrom-25a5bceb930b6db3f29b1af58133ebbd8ea5f85c.tar.gz
flashrom-25a5bceb930b6db3f29b1af58133ebbd8ea5f85c.tar.bz2
flashrom-25a5bceb930b6db3f29b1af58133ebbd8ea5f85c.zip
ft2232_spi.c: release I/Os on shutdown
Reset FTDI I/O pins to high-Z (input) when shutting down. This allows other devices to use the SPI bus without having to disconnect the programmer. This change will introduce a backward incompatibility in the case where a user is relying on the state of FTDI outputs post-programming (eg. to disallow another device from driving CS low). However, there are likely more cases where releasing the SPI bus is the correct thing to do. Signed-off-by: Alan Green <avg@google.com> Change-Id: I9fae55e532595752983f55fac2298f81699dbe5b Reviewed-on: https://review.coreboot.org/c/flashrom/+/49632 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'serprog.c')
0 files changed, 0 insertions, 0 deletions