* [PATCH v3 2/9] davinci: EDMA support for Omapl138-Hawkboard
@ 2010-10-14 17:21 vm.rod25
[not found] ` <1287076906-4388-1-git-send-email-vm.rod25-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: vm.rod25 @ 2010-10-14 17:21 UTC (permalink / raw)
To: davinci-linux-open-source
Cc: nsekhar, alsa-devel, khasim, caglarakyuz, sshtylyov
From: Victor Rodriguez <victor.rodriguez@sasken.com>
This patch adds EDMA support for the Hawkboard-L138 system
Signed-off-by: Victor Rodriguez <victor.rodriguez@sasken.com>
---
arch/arm/mach-davinci/board-omapl138-hawk.c | 55 +++++++++++++++++++++++++++
1 files changed, 55 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c
index 3ae5178..358944b 100644
--- a/arch/arm/mach-davinci/board-omapl138-hawk.c
+++ b/arch/arm/mach-davinci/board-omapl138-hawk.c
@@ -66,6 +66,56 @@ static int __init omapl138_hawk_config_emac(void)
return 0;
}
+/*
+ * The following EDMA channels/slots are not being used by drivers (for
+ * example: Timer, GPIO, UART events etc) on da850/omap-l138 EVM/Hawkboard,
+ * hence they are being reserved for codecs on the DSP side.
+ */
+static const s16 da850_dma0_rsv_chans[][2] = {
+ /* (offset, number) */
+ { 8, 6},
+ {24, 4},
+ {30, 2},
+ {-1, -1}
+};
+
+static const s16 da850_dma0_rsv_slots[][2] = {
+ /* (offset, number) */
+ { 8, 6},
+ {24, 4},
+ {30, 50},
+ {-1, -1}
+};
+
+static const s16 da850_dma1_rsv_chans[][2] = {
+ /* (offset, number) */
+ { 0, 28},
+ {30, 2},
+ {-1, -1}
+};
+
+static const s16 da850_dma1_rsv_slots[][2] = {
+ /* (offset, number) */
+ { 0, 28},
+ {30, 90},
+ {-1, -1}
+};
+
+static struct edma_rsv_info da850_edma_cc0_rsv = {
+ .rsv_chans = da850_dma0_rsv_chans,
+ .rsv_slots = da850_dma0_rsv_slots,
+};
+
+static struct edma_rsv_info da850_edma_cc1_rsv = {
+ .rsv_chans = da850_dma1_rsv_chans,
+ .rsv_slots = da850_dma1_rsv_slots,
+};
+
+static struct edma_rsv_info *da850_edma_rsv[2] = {
+ &da850_edma_cc0_rsv,
+ &da850_edma_cc1_rsv,
+};
+
static struct davinci_uart_config omapl138_hawk_uart_config __initdata = {
.enabled_uarts = 0x7,
@@ -77,6 +127,11 @@ static __init void omapl138_hawk_init(void)
davinci_serial_init(&omapl138_hawk_uart_config);
+ ret = da850_register_edma(da850_edma_rsv);
+ if (ret)
+ pr_warning("omapl138_hawk_init: "
+ "edma registration failed: %d\n", ret);
+
ret = omapl138_hawk_config_emac();
ret = da8xx_register_watchdog();
--
1.6.0.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3 2/9] davinci: EDMA support for Omapl138-Hawkboard
[not found] ` <1287076906-4388-1-git-send-email-vm.rod25-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2010-10-14 17:33 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2010-10-14 17:33 UTC (permalink / raw)
To: vm.rod25-Re5JQEeQqe8AvxtiuMwx3w
Cc: davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw
On 10/14/10 21:21, vm.rod25-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> From: Victor Rodriguez<victor.rodriguez-Ut8ZLSGP1ULQT0dZR+AlfA@public.gmane.org>
> This patch adds EDMA support for the Hawkboard-L138 system
> Signed-off-by: Victor Rodriguez<victor.rodriguez-Ut8ZLSGP1ULQT0dZR+AlfA@public.gmane.org>
[...]
> diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c
> index 3ae5178..358944b 100644
> --- a/arch/arm/mach-davinci/board-omapl138-hawk.c
> +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c
[...]
> @@ -77,6 +127,11 @@ static __init void omapl138_hawk_init(void)
>
> davinci_serial_init(&omapl138_hawk_uart_config);
>
> + ret = da850_register_edma(da850_edma_rsv);
> + if (ret)
> + pr_warning("omapl138_hawk_init: "
> + "edma registration failed: %d\n", ret);
pr_warning("%s: EDMA registration failed: %d\n",
__func__, ret);
WBR, Sergei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-14 17:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-14 17:21 [PATCH v3 2/9] davinci: EDMA support for Omapl138-Hawkboard vm.rod25
[not found] ` <1287076906-4388-1-git-send-email-vm.rod25-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-10-14 17:33 ` Sergei Shtylyov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.