spi: nxp_fspi: Implement errata workaround for LS1028A
authorKuldeep Singh <kuldeep.singh@nxp.com>
Tue, 3 Aug 2021 09:02:58 +0000 (14:32 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Sat, 23 Oct 2021 10:26:47 +0000 (15:56 +0530)
commitb9cfd8b0911209e2ebec887e497510ee42f9e788
tree5fe67d046144b4370dcb6cff74fc9312208b3ed6
parente8751a9387add3fb786828498352103b7188b296
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>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/nxp_fspi.c