diff options
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r-- | drivers/spi/spi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 4eb9bf02996c..214045c04705 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
@@ -1234,6 +1234,8 @@ static void of_register_spi_devices(struct spi_master *master) | |||
1234 | spi->mode |= SPI_CS_HIGH; | 1234 | spi->mode |= SPI_CS_HIGH; |
1235 | if (of_find_property(nc, "spi-3wire", NULL)) | 1235 | if (of_find_property(nc, "spi-3wire", NULL)) |
1236 | spi->mode |= SPI_3WIRE; | 1236 | spi->mode |= SPI_3WIRE; |
1237 | if (of_find_property(nc, "spi-lsb-first", NULL)) | ||
1238 | spi->mode |= SPI_LSB_FIRST; | ||
1237 | 1239 | ||
1238 | /* Device DUAL/QUAD mode */ | 1240 | /* Device DUAL/QUAD mode */ |
1239 | if (!of_property_read_u32(nc, "spi-tx-bus-width", &value)) { | 1241 | if (!of_property_read_u32(nc, "spi-tx-bus-width", &value)) { |