[meta-freescale] [u-boot-fslc] QSPI driver

Esponde, Joel Joel.Esponde at Honeywell.com
Wed Feb 17 09:26:03 PST 2016


Hi,

Thanks Fabio for your reply!
I am using the 2015.10 version because it's the last one tagged, I guess it is the latest stable release.

BTW, in the QSPI driver of u-boot-imx there is this piece of code:
	/* Write data to the QUADSPI_TBDR buffer registers. */
	static void fsl_qspi_write_data(struct fsl_qspi *q, int len, u8* txbuf)
	{
		...

	#if defined(CONFIG_MX7D) || defined(CONFIG_MX6UL)
		u32 t3;
		/* iMX7D and MX6UL TXFIFO must be at least 16 bytes*/
		t3 = t1 + ((t2 + 3) >> 2);
		for (; t3 < 4; t3++)
			writel(0, q->iobase + QUADSPI_TBDR);
	#endif

	}
So it looks like the latest Freescale CPUs have a QSPI peripheral a bit different of the previous ones.

The closest function in u-boot-fslc driver seems to be qspi_op_write:
https://github.com/Freescale/u-boot-fslc/blob/2016.01%2Bfslc/drivers/spi/fsl_qspi.c#L565
And I do not see any special code for MX6UL and MX7D in that function.
The code of that function is very close if not equal between 2015.10 and 2016.01.

If you think I still need to make a test to confirm that issue despite my explanations, I will try to do it.

When you are talking about the u-boot mailing list, are you talking about the mainline mailing list?
http://lists.denx.de/mailman/listinfo/u-boot
If so, I still have difficulties to understand how the imx, fslc and mainline 'projects' are interconnected/linked.
If you had any explanations to provide about that, I would greatly appreciate.

Joël


-----Message d'origine-----
De : Fabio Estevam [mailto:festevam at gmail.com] 
Envoyé : mercredi 17 février 2016 16:09
À : Esponde, Joel
Cc : meta-freescale at yoctoproject.org
Objet : Re: [meta-freescale] [u-boot-fslc] QSPI driver

On Wed, Feb 17, 2016 at 11:45 AM, Esponde, Joel <Joel.Esponde at honeywell.com> wrote:

> QSPI driver of u-boot-fslc seems to be broken for IMX6UL counter to 
> u-boot-imx one.
>
> Could that issue be solved simply by replacing the QSPI driver by the 
> one in u-boot-imx repo?
>
> It works at least for iMX6UL EVK board.

Have you tested U-boot 2016.01?

If it fails with this version, the please report it at the U-boot mailing list.


More information about the meta-freescale mailing list