[coreboot-gerrit] Patch set updated for coreboot: 9e26b8e imgtec/pistachio: Add spi_crop_chunk()

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Tue Apr 21 08:07:43 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 9e26b8e20e97a776b55c14950300ad47fb452e08
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 Chromium OS 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