]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: cadence_quadspi: Enable QUAD mode based on DT data
authorVignesh R <vigneshr@ti.com>
Wed, 6 Jul 2016 04:50:56 +0000 (10:20 +0530)
committerJagan Teki <jteki@openedev.com>
Sat, 9 Jul 2016 14:46:33 +0000 (20:16 +0530)
commit2372e14f1937fceea54d698342e5a4240b58a893
treeff5362dd329b3f2e970bc77368641fd9a9f49fde
parentdac3bf20fb2c9b03476be0d73db620f62ab3cee1
spi: cadence_quadspi: Enable QUAD mode based on DT data

Instead of relying on CONFIG_SPI_FLASH_QUAD to be defined to enable QUAD
mode, make use of mode_rx field of dm_spi_slave_platdata to determine
whether to enable or disable QUAD mode. This is necessary to support
muliple SPI controllers where one of them may not support QUAD mode.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Tested-by: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Jagan Teki <jteki@openedev.com>
drivers/spi/cadence_qspi.c
drivers/spi/cadence_qspi.h
drivers/spi/cadence_qspi_apb.c