summaryrefslogtreecommitdiff
path: root/spi.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-06-20 10:58:32 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-06-20 10:58:32 +0000
commit9a74a84aa4ee8f4ce7329e902df61c22a2c512d5 (patch)
treeaf751b638928cfed22ad9411d0cb7169fe9feef8 /spi.c
parentb2a0b1a386631e5af0fd6fb36517f64066a3017b (diff)
downloadflashrom-9a74a84aa4ee8f4ce7329e902df61c22a2c512d5.tar.gz
Add SPI chip read support to the dummy flasher. This allows using the
dummy flasher for SPI read debugging. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Sean Nelson <audiohacked@gmail.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1053 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'spi.c')
-rw-r--r--spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spi.c b/spi.c
index 2074d21..bc80cbd 100644
--- a/spi.c
+++ b/spi.c
@@ -99,7 +99,7 @@ const struct spi_programmer spi_programmer[] = {
{ /* SPI_CONTROLLER_DUMMY */
.command = dummy_spi_send_command,
.multicommand = default_spi_send_multicommand,
- .read = NULL,
+ .read = dummy_spi_read,
.write_256 = NULL,
},
#endif