From 13cee14c9ca065a47d940e312ec395d1fe2d5d94 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Tue, 14 Apr 2015 12:52:08 +0200 Subject: 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 Reviewed-on: http://review.coreboot.org/9677 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones --- src/soc/rockchip/rk3288/spi.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/soc/rockchip/rk3288/spi.c b/src/soc/rockchip/rk3288/spi.c index 6ece8c1ed0..499998978b 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) { -- cgit v1.2.3