Hi,
I did a little modification in spi-imx driver to insert 0 wait states in SCLK between data, but it is not working! I am using an imx6 wandboard board with kernel 4.9.11.
/* 0 wait states inserted */
reg = readl(spi_imx->base + MX51_ECSPI_PERIOD);
reg &= ~(MX51_ECSPI_PERIOD_MASK); // MASK=0x7FFF
writel(reg, spi_imx->base + MX51_ECSPI_PERIOD);
There is still a 2.2uS delay.
Hi Vinicuis
one can try to use larger burst lengths using the BURST_LENGTH
setting in register ECSPIx_CONREG and spi native chip select patch:
[2/2] spi: imx: fix use of native chip-selects with devicetree - Patchwork
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------