Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@xxxxxx> --- Not for inclusion - just an example how to enable DMA on SCIF. diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index 2b94281..caca1b8 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c @@ -175,6 +175,9 @@ static struct plat_sci_port scif0_platform_data = { .type = PORT_SCIF, .irqs = { 80, 80, 80, 80 }, .clk = "scif0", + .dma_dev = &dma_device.dev, + .dma_slave_tx = SHDMA_SLAVE_SCIF0_TX, + .dma_slave_rx = SHDMA_SLAVE_SCIF0_RX, }; static struct platform_device scif0_device = { @@ -191,6 +194,9 @@ static struct plat_sci_port scif1_platform_data = { .type = PORT_SCIF, .irqs = { 81, 81, 81, 81 }, .clk = "scif1", + .dma_dev = &dma_device.dev, + .dma_slave_tx = SHDMA_SLAVE_SCIF1_TX, + .dma_slave_rx = SHDMA_SLAVE_SCIF1_RX, }; static struct platform_device scif1_device = { @@ -207,6 +213,9 @@ static struct plat_sci_port scif2_platform_data = { .type = PORT_SCIF, .irqs = { 82, 82, 82, 82 }, .clk = "scif2", + .dma_dev = &dma_device.dev, + .dma_slave_tx = SHDMA_SLAVE_SCIF2_TX, + .dma_slave_rx = SHDMA_SLAVE_SCIF2_RX, }; static struct platform_device scif2_device = { -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html