]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ARM: mach-shmobile: mackerel: Add FSI DMAEngine support
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 2 Apr 2012 01:40:14 +0000 (18:40 -0700)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 12 May 2012 20:26:09 +0000 (22:26 +0200)
We need undocumented address to use DMA.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
arch/arm/mach-shmobile/board-mackerel.c

index 8c6202bb6aeb35de9be72a11797fafd40eed764d..75b22843975ae71cd7fb9a48c58e1940e71b57a0 100644 (file)
@@ -908,6 +908,8 @@ fsi_set_rate_end:
 static struct sh_fsi_platform_info fsi_info = {
        .port_a = {
                .flags = SH_FSI_BRS_INV,
+               .tx_id = SHDMA_SLAVE_FSIA_TX,
+               .rx_id = SHDMA_SLAVE_FSIA_RX,
        },
        .port_b = {
                .flags = SH_FSI_BRS_INV |
@@ -920,9 +922,11 @@ static struct sh_fsi_platform_info fsi_info = {
 
 static struct resource fsi_resources[] = {
        [0] = {
+               /* we need 0xFE1F0000 to access DMA
+                * instead of 0xFE3C0000 */
                .name   = "FSI",
-               .start  = 0xFE3C0000,
-               .end    = 0xFE3C0400 - 1,
+               .start  = 0xFE1F0000,
+               .end    = 0xFE1F0400 - 1,
                .flags  = IORESOURCE_MEM,
        },
        [1] = {