diff options
Diffstat (limited to 'src/soc/rockchip/rk3288/spi.c')
-rw-r--r-- | src/soc/rockchip/rk3288/spi.c | 5 |
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) { |