]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: zynqmp_gqspi: support dual and quad mode
authorBrandon Maier <brandon.maier@rockwellcollins.com>
Wed, 20 Jan 2021 16:39:46 +0000 (10:39 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 3 Feb 2021 12:36:44 +0000 (13:36 +0100)
commitf1fd79afad97df76f0d84847d98d80d5a8c7e4ec
tree30846f848487a96a422f6206b89418cec89cd373
parentfdcb93e1709ab1a2ebb562455621617c29e2099c
spi: zynqmp_gqspi: support dual and quad mode

The dm_spi_ops.xfer() API does not support dual and quad SPI modes. It
also doesn't allow the zynqmp_gqspi driver to calculate the correct
number of dummy cycles for some NOR ops (as doing so also requires the
buswidth).

Port the zynqmp_gqspi driver to spi_controller_mem_ops, which gives us
the buswidth values to correctly support all SNOR_PROTO_X_X_X commands
and to properly calculate dummy cycles.

Signed-off-by: Brandon Maier <brandon.maier@rockwellcollins.com>
CC: jagan@amarulasolutions.com
CC: michal.simek@xilinx.com
CC: Ashok Reddy Soma <ashokred@xilinx.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/spi/zynqmp_gqspi.c