summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-fsl-lpspi.c
diff options
context:
space:
mode:
authorFrieder Schrempf <frieder.schrempf@kontron.de>2019-10-07 10:23:02 +0300
committerMark Brown <broonie@kernel.org>2019-10-08 19:35:29 +0300
commitf6910679e17ad4915f008bd2c614d38052426f7c (patch)
tree8a4d19e218b9941efbbefa9b6cd2ecbcb3a9d611 /drivers/spi/spi-fsl-lpspi.c
parent5d2af8bcd4939d0f3d5061cc3b7783fd26311828 (diff)
downloadlinux-f6910679e17ad4915f008bd2c614d38052426f7c.tar.xz
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>
Diffstat (limited to 'drivers/spi/spi-fsl-lpspi.c')
0 files changed, 0 insertions, 0 deletions