summaryrefslogtreecommitdiff
path: root/src/soc/rockchip
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2015-04-14 12:52:08 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-04-15 07:28:28 +0200
commit13cee14c9ca065a47d940e312ec395d1fe2d5d94 (patch)
treef6394bba4bf931a749cc6962bea21832f8086689 /src/soc/rockchip
parent89be154f0fffb3fcf06ce3ff9bb5f8c1edd0e02b (diff)
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@chromium.org> Reviewed-on: http://review.coreboot.org/9677 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Diffstat (limited to 'src/soc/rockchip')
-rw-r--r--src/soc/rockchip/rk3288/spi.c5
1 files changed, 5 insertions, 0 deletions
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)
{