mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
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>
This commit is contained in:

committed by
Carl-Daniel Hailfinger

parent
3464d05eb4
commit
7bca126561
3
ichspi.c
3
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)
|
||||
|
Reference in New Issue
Block a user