From 654edb0243410959ecd504795312bd665474dcfc Mon Sep 17 00:00:00 2001 From: hailfinger Date: Fri, 15 Jun 2012 22:28:12 +0000 Subject: 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 Acked-by: Carl-Daniel Hailfinger git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1543 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- it87spi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'it87spi.c') 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) -- cgit v1.2.1