Unverified Commit a9888b32 authored by Haibo Chen's avatar Haibo Chen Committed by Mark Brown
Browse files

spi: spi-nxp-fspi: set back to dll override mode when clock rate < 100MHz



Preparation of supportting DTR mode. In nor suspend, driver will disable
DTR mode, and enable DTR mode back in nor resume. This require the flexspi
driver has the ability to set back to dll override mode in STR mode when
clock rate < 100MHz.

Signed-off-by: default avatarHaibo Chen <haibo.chen@nxp.com>
Reviewed-by: default avatarFrank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20250917-flexspi-ddr-v2-2-bb9fe2a01889@nxp.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 614180a5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -767,6 +767,8 @@ static void nxp_fspi_select_mem(struct nxp_fspi *f, struct spi_device *spi,
	 */
	if (rate > 100000000)
		nxp_fspi_dll_calibration(f);
	else
		nxp_fspi_dll_override(f);

	f->selected = spi_get_chipselect(spi, 0);
}