Hello,
I'm developing a QNX SPI slave driver for OMAPL138.
I planned to use SP1 which is used at boot time for UBL and u-boot loading.
First of all, can I use OMAP SP1 as slave with flash attached?
Next, I developed the driver using the initialization procedure given by spruh77a.pdf at paragraph 30.2.19, but I cannot intercept interrupts.
Below, pseudocode of my driver.
SPIGCR0 = 0; //RESET SPIGCR0 = 1; //OUT OF RESET SPIGCR1 = 0; //SLAVE MODE SPIPCO = CLK | SIMO | SOMI; //3-pin mode SPIDAT1 &= ~(3 << 24); //set SPIFMT0 SPIFMT0 = 0x08 | POLARITY1; //8bit data, MSB first,POLARITY = 1 and PHASE = 0 SPILVL = (1 << 8); SPIINT = (1 << 8); //enable interrupt SPIGCR1 |= SPIENA; //enable SPI controller
Any ideas?
Regards,
Stefano