diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-06-25 06:36:49 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-06-30 09:07:30 -0400 |
commit | 643c3307bbbe7e80c6693376137971fbdcbe1c82 (patch) | |
tree | fced648c1b0bd62d448570e217dbeb3b021375fc /arch/arm/mach-shmobile/clock-r8a7740.c | |
parent | b379c48a31018ef3c902f4a0f8c420bbd4caa14c (diff) |
ARM: shmobile: r8a7740: add DMAEngine support for FSI
Current shdmac can support FSI DMAC on r8a7740.
This support reduce CPU duty when sound was playback.
This patch is based on v1.0 manual
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>
Diffstat (limited to 'arch/arm/mach-shmobile/clock-r8a7740.c')
-rw-r--r-- | arch/arm/mach-shmobile/clock-r8a7740.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/clock-r8a7740.c b/arch/arm/mach-shmobile/clock-r8a7740.c index 7b9e4ab34fa2..39b131101167 100644 --- a/arch/arm/mach-shmobile/clock-r8a7740.c +++ b/arch/arm/mach-shmobile/clock-r8a7740.c | |||
@@ -463,6 +463,7 @@ enum { | |||
463 | 463 | ||
464 | MSTP230, | 464 | MSTP230, |
465 | MSTP222, | 465 | MSTP222, |
466 | MSTP218, MSTP217, MSTP216, | ||
466 | MSTP207, MSTP206, MSTP204, MSTP203, MSTP202, MSTP201, MSTP200, | 467 | MSTP207, MSTP206, MSTP204, MSTP203, MSTP202, MSTP201, MSTP200, |
467 | 468 | ||
468 | MSTP329, MSTP328, MSTP323, MSTP320, | 469 | MSTP329, MSTP328, MSTP323, MSTP320, |
@@ -485,6 +486,9 @@ static struct clk mstp_clks[MSTP_NR] = { | |||
485 | 486 | ||
486 | [MSTP230] = SH_CLK_MSTP32(&div6_clks[DIV6_SUB], SMSTPCR2, 30, 0), /* SCIFA6 */ | 487 | [MSTP230] = SH_CLK_MSTP32(&div6_clks[DIV6_SUB], SMSTPCR2, 30, 0), /* SCIFA6 */ |
487 | [MSTP222] = SH_CLK_MSTP32(&div6_clks[DIV6_SUB], SMSTPCR2, 22, 0), /* SCIFA7 */ | 488 | [MSTP222] = SH_CLK_MSTP32(&div6_clks[DIV6_SUB], SMSTPCR2, 22, 0), /* SCIFA7 */ |
489 | [MSTP218] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR2, 18, 0), /* DMAC1 */ | ||
490 | [MSTP217] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR2, 17, 0), /* DMAC2 */ | ||
491 | [MSTP216] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR2, 16, 0), /* DMAC3 */ | ||
488 | [MSTP207] = SH_CLK_MSTP32(&div6_clks[DIV6_SUB], SMSTPCR2, 7, 0), /* SCIFA5 */ | 492 | [MSTP207] = SH_CLK_MSTP32(&div6_clks[DIV6_SUB], SMSTPCR2, 7, 0), /* SCIFA5 */ |
489 | [MSTP206] = SH_CLK_MSTP32(&div6_clks[DIV6_SUB], SMSTPCR2, 6, 0), /* SCIFB */ | 493 | [MSTP206] = SH_CLK_MSTP32(&div6_clks[DIV6_SUB], SMSTPCR2, 6, 0), /* SCIFB */ |
490 | [MSTP204] = SH_CLK_MSTP32(&div6_clks[DIV6_SUB], SMSTPCR2, 4, 0), /* SCIFA0 */ | 494 | [MSTP204] = SH_CLK_MSTP32(&div6_clks[DIV6_SUB], SMSTPCR2, 4, 0), /* SCIFA0 */ |
@@ -563,7 +567,9 @@ static struct clk_lookup lookups[] = { | |||
563 | CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP204]), | 567 | CLKDEV_DEV_ID("sh-sci.0", &mstp_clks[MSTP204]), |
564 | CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP206]), | 568 | CLKDEV_DEV_ID("sh-sci.8", &mstp_clks[MSTP206]), |
565 | CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP207]), | 569 | CLKDEV_DEV_ID("sh-sci.5", &mstp_clks[MSTP207]), |
566 | 570 | CLKDEV_DEV_ID("sh-dma-engine.2", &mstp_clks[MSTP216]), | |
571 | CLKDEV_DEV_ID("sh-dma-engine.1", &mstp_clks[MSTP217]), | ||
572 | CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP218]), | ||
567 | CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP222]), | 573 | CLKDEV_DEV_ID("sh-sci.7", &mstp_clks[MSTP222]), |
568 | CLKDEV_DEV_ID("sh-sci.6", &mstp_clks[MSTP230]), | 574 | CLKDEV_DEV_ID("sh-sci.6", &mstp_clks[MSTP230]), |
569 | 575 | ||