mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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 <sjg@chromium.org> Signed-off-by: Jagan Teki <jteki@openedev.com>
This commit is contained in:
parent
789fa275b3
commit
379b49d82e
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue