From: Jagan Teki Date: Thu, 3 Dec 2015 16:49:05 +0000 (+0530) Subject: spi: Get spi-3wire from dts X-Git-Tag: v2016.01-rc3~34^2~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=379b49d82ee3304b55ece1f32d95fbeef9e0176a;p=u-boot spi: Get spi-3wire from dts spi-3wire is used when SI/SO signals shared so get the same from dts node and assign to mode on slave plat->mode. Acked-by: Simon Glass Signed-off-by: Jagan Teki --- diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c index 3c7d64ae63..e0f6b25f30 100644 --- a/drivers/spi/spi-uclass.c +++ b/drivers/spi/spi-uclass.c @@ -378,6 +378,8 @@ int spi_slave_ofdata_to_platdata(const void *blob, int node, mode |= SPI_CPHA; if (fdtdec_get_bool(blob, node, "spi-cs-high")) mode |= SPI_CS_HIGH; + if (fdtdec_get_bool(blob, node, "spi-3wire")) + mode |= SPI_3WIRE; if (fdtdec_get_bool(blob, node, "spi-half-duplex")) mode |= SPI_PREAMBLE; plat->mode = mode;