summaryrefslogtreecommitdiffstats
path: root/it87spi.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
commit7bca126561b80f626dea269d7a6284a7cde0a8ed (patch)
tree45c6b31e39846a88d89d157d758134d7b8dc1db1 /it87spi.c
parent3464d05eb41ab4c7a6faba9a1a36bfbeda0de850 (diff)
downloadast2050-flashrom-7bca126561b80f626dea269d7a6284a7cde0a8ed.zip
ast2050-flashrom-7bca126561b80f626dea269d7a6284a7cde0a8ed.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 'it87spi.c')
-rw-r--r--it87spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/it87spi.c b/it87spi.c
index 8119289..c02f77b 100644
--- a/it87spi.c
+++ b/it87spi.c
@@ -120,6 +120,7 @@ static const struct spi_programmer spi_programmer_it87xx = {
.multicommand = default_spi_send_multicommand,
.read = it8716f_spi_chip_read,
.write_256 = it8716f_spi_chip_write_256,
+ .write_aai = default_spi_write_aai,
};
static uint16_t it87spi_probe(uint16_t port)
OpenPOWER on IntegriCloud