From: Siva Durga Prasad Paladugu Date: Thu, 2 Jul 2015 13:01:31 +0000 (+0530) Subject: spi: zynq_qspi: Clear the manual start enable in the config X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95c34ac13d58974836ce62182d88cba756138ad6;p=thirdparty%2Fu-boot.git spi: zynq_qspi: Clear the manual start enable in the config 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 Signed-off-by: Michal Simek --- diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c index 33fb7234c4c..aee898770b8 100644 --- a/drivers/spi/zynq_qspi.c +++ b/drivers/spi/zynq_qspi.c @@ -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;