spi: spi-nxp-fspi: set back to dll override mode when clock rate < 100MHz
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 17 Sep 2025 07:27:07 +0000 (15:27 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 18 Sep 2025 21:26:49 +0000 (22:26 +0100)
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: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20250917-flexspi-ddr-v2-2-bb9fe2a01889@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-nxp-fspi.c

index db4b924..a1c9ad0 100644 (file)
@@ -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);
 }