Skip to content

Commit

Permalink
ARM: mach-shmobile: mackerel: Add FSI DMAEngine support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Rafael J. Wysocki committed May 12, 2012
1 parent c824108 commit c650a1f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/arm/mach-shmobile/board-mackerel.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,8 @@ static int fsi_b_set_rate(struct device *dev, int rate, int enable)
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 |
Expand All @@ -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] = {
Expand Down

0 comments on commit c650a1f

Please sign in to comment.