]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
spi: zynq_qspi: Fill the spi slave structure correctly.
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Tue, 4 Feb 2014 09:51:50 +0000 (15:21 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 7 Feb 2014 06:57:55 +0000 (07:57 +0100)
Fill the spi slave structure with proper read, write commands
supported and with dual mode value.

Problem was introduced by:
Merge tag 'v2014.01' into xilinx/master-next
(sha1: 60513f2031793692e60e3b2fc1930243bb6bb991)

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/spi/zynq_qspi.c
include/configs/zynq-common.h

index 5d09b56ca9c766582b6792b709361842c9d6d8e8..04e35ff113ea9eda261bab9469f85ab3fa3642dd 100644 (file)
@@ -906,6 +906,9 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
                debug("Qspi clk frequency set to %ld Hz\n", lqspi_frequency);
        }
 
+       qspi->slave.option = is_dual;
+       qspi->slave.op_mode_rx = SPI_OPM_RX_QOF;
+       qspi->slave.op_mode_tx = SPI_OPM_TX_QPP;
        qspi->qspi.master.speed_hz = qspi->qspi.master.input_clk_hz / 2;
        qspi->qspi.max_speed_hz = (max_hz < qspi->qspi.master.speed_hz) ?
                                                                max_hz : qspi->qspi.master.speed_hz;
index 82473f9cab82455c0f1da741ed6a07672366f0bf..9ec68c8a20fd06fb3cecae81479d27d3d7d4b2e5 100644 (file)
 # define CONFIG_SPI_FLASH_WINBOND
 # define CONFIG_CMD_SPI
 # define CONFIG_CMD_SF
+# define CONFIG_SF_DUAL_FLASH
 #endif
 
 /* NAND */