[coreboot-gerrit] New patch to review for coreboot: f9cd0b8 imgtec/pistachio: Add spi_crop_chunk()
Patrick Georgi (pgeorgi@google.com)
gerrit at coreboot.org
Mon Apr 20 10:18:40 CEST 2015
Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9808
-gerrit
commit f9cd0b8a8b51a0934b256aa9e0ce905dfe7ca3c6
Author: Patrick Georgi <pgeorgi at chromium.org>
Date: Mon Apr 20 10:14:19 2015 +0200
imgtec/pistachio: Add spi_crop_chunk()
This was added in upstream but not in chromiumos where
pistachio support was developed.
Change-Id: I54f883776f19aa7bd357841731166e92d03145d8
Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
---
src/soc/imgtec/pistachio/spi.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/soc/imgtec/pistachio/spi.c b/src/soc/imgtec/pistachio/spi.c
index 64d18a3..3cae6af 100644
--- a/src/soc/imgtec/pistachio/spi.c
+++ b/src/soc/imgtec/pistachio/spi.c
@@ -542,3 +542,8 @@ int spi_xfer(struct spi_slave *slave, const void *dout, unsigned int bytesout,
}
return spim_io(slave, &buff_0, (dout && din) ? &buff_1 : NULL);
}
+
+unsigned int spi_crop_chunk(unsigned int cmd_len, unsigned int buf_len)
+{
+ return min(IMGTEC_SPI_MAX_TRANSFER_SIZE, buf_len);
+}
More information about the coreboot-gerrit
mailing list