
On 07/12/2016 07:24 PM, Yunhui Cui wrote:
On 07/12/2016 11:15 PM, York wrote:
On 07/11/2016 08:00 PM, Yunhui Cui wrote:
From: Yunhui Cui yunhui.cui@nxp.com
Errata: A-009282: QuadSPI data pre-fetch can result in incorrect data We need this errata workaround when CONFIG_SYS_FSL_QSPI_AHB is enabled.
Signed-off-by: Yunhui Cui yunhui.cui@nxp.com
drivers/spi/fsl_qspi.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index 75cbab2..0354e20 100644 --- a/drivers/spi/fsl_qspi.c +++ b/drivers/spi/fsl_qspi.c @@ -438,13 +438,23 @@ static void qspi_enable_ddr_mode(struct
fsl_qspi_priv *priv)
static void qspi_init_ahb_read(struct fsl_qspi_priv *priv) { struct fsl_qspi_regs *regs = priv->regs;
- int rx_size = 0x80;
Wrap this with ifdef, or you will have compiling warning when the macro is not defined.
York
[Yunhui] Whether This macro defined or not, rx_size will be used, It seems that Wrap is not necessary and have no compiling warning.
OK. That's fine.
York