Skip to content
Snippets Groups Projects
Commit 379b49d8 authored by Jagan Teki's avatar Jagan Teki
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarJagan Teki <jteki@openedev.com>
parent 789fa275
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment