SPI-Difference between MX1 and MX31
Hello,
while working on a generic SPI-driver for the i.MX-platform I stumbled over the following:
The MX1 can flush its FIFOs using the enable bit. Documentation says:
"SPI Module Enable - Enables/Disables the serial peripheral interface. SPIEN must be asserted before an exchange is initiated. Writing 0 to SPIEN flushes the receive and transmit FIFOs."
Furthermore it has a dedicated reset register:
"Start - Executes soft reset."
However, the MX31 does not have a reset register and the documentation says this regarding the enable bit:
"SPI Module Enable Control - This bit enables the CSPI. This bit must be asserted before writing to other registers or initiating an exchange. Writing zero to this bit disables the module and resets the internal logic with the exception of the CONREG. The module’s internal clocks are gated off whenever the module is disabled."
So, as I read all this, disabling the enable bit on the MX31 is more like a soft reset on MX1, right? And there does not seem to be a way to flush the FIFOs. Can someone imagine what problems might arise if there is no way to flush the FIFOs? At least, the check for XCH should have ensured that the TXFIFO is empty...
Looking forward to feedback :)
Regards,
Wolfram Sang
Signature · 2 lines
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev
A message that is not in the archive (sent off-list or not yet received): [email protected]
Ooops, wrong list. Sorry!
Signature · 2 lines
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
spi-devel-general mailing list spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/spi-devel-general