summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2016-11-17 16:17:37 -0800
committerFurquan Shaikh <furquan@google.com>2016-11-22 17:33:33 +0100
commitdc34fb60b4151a7fad3882cc85dac4379f2d8dd8 (patch)
treee1ef39bd00fa5c252fb200a231d6e67915db73fa /src/include
parentc28984d9ea08e7d995ef9fc8064c10ec0c0d9d77 (diff)
downloadcoreboot-dc34fb60b4151a7fad3882cc85dac4379f2d8dd8.tar.xz
spi: Get rid of max_transfer_size parameter in spi_slave structure
max_transfer_size is a property of the SPI controller and not of the spi slave. Also, this is used only on one SoC currently. There is no need to handle this at the spi flash layer. This change moves the handling of max_transfer_size to SoC SPI driver and gets rid of the max_transfer_size parameter. BUG=None BRANCH=None TEST=Compiles successfully. Change-Id: I19a1d0a83395a58c2bc1614b24518a3220945a60 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/17463 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/include')
-rw-r--r--src/include/spi-generic.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/include/spi-generic.h b/src/include/spi-generic.h
index ee02394096..eacb092d1c 100644
--- a/src/include/spi-generic.h
+++ b/src/include/spi-generic.h
@@ -31,15 +31,10 @@
*
* bus: ID of the bus that the slave is attached to.
* cs: ID of the chip select connected to the slave.
- * max_transfer_size: maximum amount of bytes which can be sent in a single
- * read or write transaction, usually this is a controller
- * property, kept in the slave structure for convenience. Zero in
- * this field means 'unlimited'.
*/
struct spi_slave {
unsigned int bus;
unsigned int cs;
- unsigned int max_transfer_size;
int force_programmer_specific;
struct spi_flash * (*programmer_specific_probe) (struct spi_slave *spi);
};