[coreboot-gerrit] New patch to review for coreboot: 1093e8f rk3288: implement spi_crop_chunk()

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Tue Apr 14 13:34:21 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/9677

-gerrit

commit 1093e8f25338ee7f2357d640a9ec033395516659
Author: Patrick Georgi <pgeorgi at chromium.org>
Date:   Tue Apr 14 12:52:08 2015 +0200

    rk3288: implement spi_crop_chunk()
    
    This function was added in upstream but was missing in Chromium OS
    
    Change-Id: I35debf65153e5f280343eebfe91438ecf665ba22
    Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
---
 src/soc/rockchip/rk3288/spi.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/soc/rockchip/rk3288/spi.c b/src/soc/rockchip/rk3288/spi.c
index 6ece8c1..4999989 100644
--- a/src/soc/rockchip/rk3288/spi.c
+++ b/src/soc/rockchip/rk3288/spi.c
@@ -235,6 +235,11 @@ static int do_xfer(struct spi_slave *slave, const void *dout,
 	return 0;
 }
 
+unsigned int spi_crop_chunk(unsigned int cmd_len, unsigned int buf_len)
+{
+	return min(65535, buf_len);
+}
+
 int spi_xfer(struct spi_slave *slave, const void *dout,
 		unsigned int bytes_out, void *din, unsigned int bytes_in)
 {



More information about the coreboot-gerrit mailing list