From: Hoan Nguyen An <na-hoan@xxxxxxxxxxx> SPI controllers can support LSB or MSB depending on the structure of the message that Slave requires, Add support. Signed-off-by: Hoan Nguyen An <na-hoan@xxxxxxxxxxx> --- drivers/spi/spi-rspi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index 3be8fbe..7ae5f09 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c @@ -950,6 +950,8 @@ static int rspi_prepare_message(struct spi_controller *ctlr, rspi->spcmd |= SPCMD_CPOL; if (spi->mode & SPI_CPHA) rspi->spcmd |= SPCMD_CPHA; + if (spi->mode & SPI_LSB_FIRST) + rspi->spcmd |= SPCMD_LSBF; /* CMOS output mode and MOSI signal from previous transfer */ rspi->sppcr = 0; -- 2.7.4