Andrew G

i.MX27 SPI issue

Discussion created by Andrew G on Feb 21, 2012

Hello all


I am developing a driver for a RFID chip. My MCU is a i.MX27 and the plan is to communicate with the RFID via SPI. However the RFID chip requires that I change the SPI mode (value of POL)  between write and read.

The mx_spi driver does not allow me to do the change on-the-fly. It uses the POL and PHA values configured when I added the SPI bus for the RFID.


Any hints how I can make the mx27 write on the SPI in one mode and read in another?


Thank you in advance for you suggestions.