spi: spi-nxp-fspi: Implement errata workaround for LS1028A
authorKuldeep Singh <kuldeep.singh@nxp.com>
Tue, 2 Mar 2021 12:49:36 +0000 (18:19 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 12:46:57 +0000 (12:46 +0000)
commit82ce7d0e74b6f6d1fcddfc674e3f4d3d65965511
treea3ce5262371f1d613c79a24634f5de38a34703a7
parentc791e3c31cb209e6f25a5f3767707d16c1a6069a
spi: spi-nxp-fspi: Implement errata workaround for LS1028A

Errata ERR050568 description says that "Flash access by FlexSPI AHB
command may not work with platform frequency equal to 300 MHz" on
LS1028A.

By default, smaller length reads(equal to RX FIFO size) are done by IP
bus and larger length reads using AHB bus. For adding errata workaround,
use IP bus to read entire flash contents and disable AHB path when
platform frequency is 300Mhz.

Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
Link: https://lore.kernel.org/r/20210302124936.1972546-5-kuldeep.singh@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-nxp-fspi.c