summaryrefslogtreecommitdiff
path: root/ichspi.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2012-06-15 22:28:12 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2012-06-15 22:28:12 +0000
commit654edb0243410959ecd504795312bd665474dcfc (patch)
tree45c6b31e39846a88d89d157d758134d7b8dc1db1 /ichspi.c
parentc10838212a99affcfb56ae437f1bb0fefd86a8a5 (diff)
downloadflashrom-654edb0243410959ecd504795312bd665474dcfc.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. Signed-off-by: Nico Huber <nico.huber@secunet.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1543 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'ichspi.c')
-rw-r--r--ichspi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ichspi.c b/ichspi.c
index b7d312c..29c507a 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -1521,6 +1521,7 @@ static const struct spi_programmer spi_programmer_ich7 = {
.multicommand = ich_spi_send_multicommand,
.read = default_spi_read,
.write_256 = default_spi_write_256,
+ .write_aai = default_spi_write_aai,
};
static const struct spi_programmer spi_programmer_ich9 = {
@@ -1531,6 +1532,7 @@ static const struct spi_programmer spi_programmer_ich9 = {
.multicommand = ich_spi_send_multicommand,
.read = default_spi_read,
.write_256 = default_spi_write_256,
+ .write_aai = default_spi_write_aai,
};
static const struct opaque_programmer opaque_programmer_ich_hwseq = {
@@ -1838,6 +1840,7 @@ static const struct spi_programmer spi_programmer_via = {
.multicommand = ich_spi_send_multicommand,
.read = default_spi_read,
.write_256 = default_spi_write_256,
+ .write_aai = default_spi_write_aai,
};
int via_init_spi(struct pci_dev *dev)