ARM: shmobile: armadillo800eva: enable DMAEngine on FSI
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 25 Jun 2012 10:37:20 +0000 (03:37 -0700)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 30 Jun 2012 13:24:52 +0000 (15:24 +0200)
It is possible to reduce CPU load if FSI playback used DMAEngine.
This patch enabled it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
arch/arm/configs/armadillo800eva_defconfig
arch/arm/mach-shmobile/board-armadillo800eva.c

index df1ce543cd7c7ecdd84296334c4443ddf4951c7d..16bbb3f8f234c60733b12a3650554fd8e7c53aa8 100644 (file)
@@ -119,6 +119,8 @@ CONFIG_USB_ETH=m
 CONFIG_MMC=y
 CONFIG_MMC_SDHI=y
 CONFIG_MMC_SH_MMCIF=y
+CONFIG_DMADEVICES=y
+CONFIG_SH_DMAE=y
 CONFIG_UIO=y
 CONFIG_UIO_PDRV_GENIRQ=y
 # CONFIG_DNOTIFY is not set
index a642ce68dddf11727c5b285054d8f56d88e9cb76..d63e559629b8215c572964dcda25f9de5d4942b3 100644 (file)
@@ -768,12 +768,14 @@ static int fsi_hdmi_set_rate(struct device *dev, int rate, int enable)
 static struct sh_fsi_platform_info fsi_info = {
        /* FSI-WM8978 */
        .port_a = {
+               .tx_id = SHDMA_SLAVE_FSIA_TX,
        },
        /* FSI-HDMI */
        .port_b = {
                .flags          = SH_FSI_FMT_SPDIF |
                                  SH_FSI_ENABLE_STREAM_MODE,
                .set_rate       = fsi_hdmi_set_rate,
+               .tx_id          = SHDMA_SLAVE_FSIB_TX,
        }
 };