On iMX7ULP A0, PCC divider for QSPI has timing issue and it is
only possible to use the divider ratio equal to 1 (PCD=0).
This timing issue causes page program working abnormal if DDR_EN
is set. So current QSPI driver has disabled DDR mode on iMX7ULP
Since iMX7ULP B0 has fixed the issue, so re-enable the DDR mode
for iMX7ULP.
Signed-off-by: Ye Li <ye.li@nxp.com>
qspi_write32(priv->flags, ®s->mcr, mcr_reg);
}
-#ifndef CONFIG_MX7ULP
static void qspi_enable_ddr_mode(struct fsl_qspi_priv *priv)
{
u32 reg, reg2;
reg |= BIT(16);
qspi_write32(priv->flags, ®s->flshcr, reg);
}
-#endif
/*
* There are two different ways to read out the data from the flash:
qspi_write32(priv->flags, ®s->bfgencr,
SEQID_FAST_READ << QSPI_BFGENCR_SEQID_SHIFT);
-#ifndef CONFIG_MX7ULP
/*Enable DDR Mode*/
qspi_enable_ddr_mode(priv);
-#endif
}
#endif