|
@@ -562,9 +562,9 @@ spi_sirfsoc_setup_transfer(struct spi_device *spi, struct spi_transfer *t)
|
|
|
|
|
|
sspi->word_width = DIV_ROUND_UP(bits_per_word, 8);
|
|
sspi->word_width = DIV_ROUND_UP(bits_per_word, 8);
|
|
txfifo_ctrl = SIRFSOC_SPI_FIFO_THD(SIRFSOC_SPI_FIFO_SIZE / 2) |
|
|
txfifo_ctrl = SIRFSOC_SPI_FIFO_THD(SIRFSOC_SPI_FIFO_SIZE / 2) |
|
|
- sspi->word_width;
|
|
|
|
|
|
+ (sspi->word_width >> 1);
|
|
rxfifo_ctrl = SIRFSOC_SPI_FIFO_THD(SIRFSOC_SPI_FIFO_SIZE / 2) |
|
|
rxfifo_ctrl = SIRFSOC_SPI_FIFO_THD(SIRFSOC_SPI_FIFO_SIZE / 2) |
|
|
- sspi->word_width;
|
|
|
|
|
|
+ (sspi->word_width >> 1);
|
|
|
|
|
|
if (!(spi->mode & SPI_CS_HIGH))
|
|
if (!(spi->mode & SPI_CS_HIGH))
|
|
regval |= SIRFSOC_SPI_CS_IDLE_STAT;
|
|
regval |= SIRFSOC_SPI_CS_IDLE_STAT;
|