spi: spi-fsl-qspi: Clear TDH bits in FLSHCR register
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Mon, 7 Oct 2019 07:23:02 +0000 (07:23 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 8 Oct 2019 16:35:29 +0000 (17:35 +0100)
commitf6910679e17ad4915f008bd2c614d38052426f7c
tree8a4d19e218b9941efbbefa9b6cd2ecbcb3a9d611
parent5d2af8bcd4939d0f3d5061cc3b7783fd26311828
spi: spi-fsl-qspi: Clear TDH bits in FLSHCR register

Later versions of the QSPI controller (e.g. in i.MX6UL/ULL and i.MX7)
seem to have an additional TDH setting in the FLSHCR register, that
needs to be set in accordance with the access mode that is used (DDR
or SDR).

Previous bootstages such as BootROM or bootloader might have used the
DDR mode to access the flash. As we currently only use SDR mode, we
need to make sure the TDH bits are cleared upon initialization.

Fixes: 84d043185dbe ("spi: Add a driver for the Freescale/NXP QuadSPI controller")
Cc: <stable@vger.kernel.org>
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Acked-by: Han Xu <han.xu@nxp.com>
Link: https://lore.kernel.org/r/20191007071933.26786-1-frieder.schrempf@kontron.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-qspi.c