This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TMS320DM355: EDMA and SPI 1 - are mutually exclusive??

Part Number: TMS320DM355
Other Parts Discussed in Thread: TVP5146

Tool/software: Linux

Its seems that using SPI Bus 1 and EDMA is not possible.

Spi 1 wont work unless the following Section in the dm355,c file is commented out.   which ALSO causes video encoding to Fail.   This make EVEN having a SPI1 useless if you are going to use the processor to capture / encode video.   what sense does that make?

Encode demo started.
tvp514x 1-005d: tvp514x_s_routing:
tvp514x 1-005d: tvp5146 (Version - 0x03) found at 0xba (DaVinci I2C adapter) (Expro)
tvp514x 1-005d: tvp514x_s_routing: 6
tvp514x 1-005d: tvp514x_querystd:
tvp514x 1-005d: tvp514x_querystd: 6
tvp514x 1-005d: tvp514x_s_routing:
EDMAK Error: dma_ioctl: REQUESTDMA failed: -16
EDMA Error: EDMA_IOCREQUESTDMA error
Error: Failed to create video encoder: mpeg4enc

Commented Lines.... out of DM355.c

static struct resource edma_resources[] = {
{
.name = "edma_cc0",
.start = 0x01c00000,
.end = 0x01c00000 + SZ_64K - 1,
.flags = IORESOURCE_MEM,
},
{
.name = "edma_tc0",
.start = 0x01c10000,
.end = 0x01c10000 + SZ_1K - 1,
.flags = IORESOURCE_MEM,
},
{
.name = "edma_tc1",
.start = 0x01c10400,
.end = 0x01c10400 + SZ_1K - 1,
.flags = IORESOURCE_MEM,
},
{
.name = "edma0",
.start = IRQ_CCINT0,
.flags = IORESOURCE_IRQ,
},
// DAS - Removed for SPI 1?
/*
{
.name = "edma0_err",
.start = IRQ_CCERRINT,
.flags = IORESOURCE_IRQ,
},
*/

/* not using (or muxing) TC*_ERR */
};