path: root/spi25.c
diff options
authorNico Huber <>2012-06-15 22:28:12 +0000
committerCarl-Daniel Hailfinger <>2012-06-15 22:28:12 +0000
commit7bca126561b80f626dea269d7a6284a7cde0a8ed (patch)
tree45c6b31e39846a88d89d157d758134d7b8dc1db1 /spi25.c
parent3464d05eb41ab4c7a6faba9a1a36bfbeda0de850 (diff)
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 <> Acked-by: Carl-Daniel Hailfinger <>
Diffstat (limited to 'spi25.c')
1 files changed, 1 insertions, 2 deletions
diff --git a/spi25.c b/spi25.c
index e21ab78..a6e7e21 100644
--- a/spi25.c
+++ b/spi25.c
@@ -1069,8 +1069,7 @@ int spi_chip_write_1(struct flashctx *flash, uint8_t *buf, unsigned int start,
return 0;
-int spi_aai_write(struct flashctx *flash, uint8_t *buf, unsigned int start,
- unsigned int len)
+int default_spi_write_aai(struct flashctx *flash, uint8_t *buf, unsigned int start, unsigned int len)
uint32_t pos = start;
int result;
OpenPOWER on IntegriCloud