Hi,all:
I'm using DM365EVM Board, and connect SPI1(Master) and SPI0(Slave) using 3-Pin Mode, Configure SPI register and can read/write 16Bits data using polling mode;
And configure to interrupt mode to send/receive data, and Master SPI0 request irq(42) successfully, and at same time it enter interrupt functon one time, but when receive data from SPI1, RXINTFLAG is set to 1,but cannot respond interrupt and have no enter interrupt function.
My question is:
1.How to configure Slave spi to respond to interrupt?
2.And I read the file of /arch/arm/mach-davince/davinci_spi_platform.c, fond only dm365 spi resource only initialized IRQ_DM3XX_SPINT0_0(IRQ 42)
static struct resource dm3xx_spi_resources[] = {
[0] = {
.start = DM3XX_SPI0_BASE,
.end = DM3XX_SPI0_BASE + (SZ_4K/2) - 1,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = IRQ_DM3XX_SPINT0_0,
.end = IRQ_DM3XX_SPINT0_0,
.flags = IORESOURCE_IRQ,
},
Slave spi have no interrupt responce, whether relate to it?
Thans a lot.