Hi everyone. I'm trying to write SPI driver for P1020RDB, which has support for eSPI. I've followed the initialization sequence as is mentioned in the TRM, but am unable to even get data out onto the wire. My initialization sequence is as follows,
1 - I enable the SPI device by clearing the SPI bit in the device disable register.
2 - I clear all the previous events by resetting the SPI_Event register.
3 - I set up the baud rate, and the character size, along with clock phase, polarity and slave select polarity.
4 - I clear the mask and command register, and set SPI_Mode register to 0x8000100F which enables my module.
Then, I try to write a byte to the slave by putting my data in the transmit FIFO register. However, the data never ever gets to the MOSI wire. What could be the possible problems. Is there something wrong with my initialization sequence?
Any help would be appreciated.