]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
spi: zynq_qspi: Clear the manual start enable in the config
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Thu, 2 Jul 2015 13:01:31 +0000 (18:31 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 3 Jul 2015 07:34:41 +0000 (09:34 +0200)
Clear the Manual start enable bit of the config register
during init as this zynq qspi driver implemented to do ops
using auto start and Manual chipselect.

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

index 33fb7234c4c451781d4a02251a2ec5dd58c87eab..aee898770b8aa98e7101b7ba5f865320d298d577 100644 (file)
@@ -174,7 +174,7 @@ struct zynq_qspi_slave {
  * This function performs the following actions
  *     - Disable and clear all the interrupts
  *     - Enable manual slave select
- *     - Enable manual start
+ *     - Enable auto start
  *     - Deselect all the chip select lines
  *     - Set the size of the word to be transferred as 32 bit
  *     - Set the little endian mode of TX FIFO and
@@ -200,6 +200,7 @@ static void zynq_qspi_init_hw(int is_dual, int is_dio, unsigned int cs)
 
        writel(0x7F, &zynq_qspi_base->isr);
        config_reg = readl(&zynq_qspi_base->confr);
+       config_reg &= ~ZYNQ_QSPI_CONFIG_MSA_MASK;
        config_reg |= ZYNQ_QSPI_CONFIG_IFMODE_MASK |
                ZYNQ_QSPI_CONFIG_MCS_MASK | ZYNQ_QSPI_CONFIG_PCS_MASK |
                ZYNQ_QSPI_CONFIG_FW_MASK | ZYNQ_QSPI_CONFIG_MSTREN_MASK;