summaryrefslogtreecommitdiffstats
path: root/wbsio_spi.c
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2012-06-15 22:28:12 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2012-06-15 22:28:12 +0000
commit67c7dcc26f4ff449d915d6610c8a453821877bb0 (patch)
tree45c6b31e39846a88d89d157d758134d7b8dc1db1 /wbsio_spi.c
parentc10ff1ed4f6d5eab827f89784578582be328ac5d (diff)
downloadflashrom-67c7dcc26f4ff449d915d6610c8a453821877bb0.zip
flashrom-67c7dcc26f4ff449d915d6610c8a453821877bb0.tar.gz
Let the programmer driver decide how to do AAI transfers
Currently spi_aai_write() is implemented without an abstraction mechanism for the programmer driver. This adds another function pointer 'write_aai' to struct spi_programmer, which is set to default_spi_write_aai (renamed spi_aai_write) for all programmers for now. A patch which utilises this abstraction in the dediprog driver will follow. Corresponding to flashrom svn r1543. Signed-off-by: Nico Huber <nico.huber@secunet.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'wbsio_spi.c')
-rw-r--r--wbsio_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wbsio_spi.c b/wbsio_spi.c
index 774890e..38ac2d8 100644
--- a/wbsio_spi.c
+++ b/wbsio_spi.c
@@ -75,6 +75,7 @@ static const struct spi_programmer spi_programmer_wbsio = {
.multicommand = default_spi_send_multicommand,
.read = wbsio_spi_read,
.write_256 = spi_chip_write_1,
+ .write_aai = default_spi_write_aai,
};
int wbsio_check_for_spi(void)
OpenPOWER on IntegriCloud