diff mbox

[3/5] arm: davinci: DA850: Set a default queue for CC1

Message ID 1310074390-4277-4-git-send-email-ido@wizery.com (mailing list archive)
State Changes Requested
Headers show

Commit Message

Ido Yariv July 7, 2011, 9:33 p.m. UTC
If a default queue is not set for a channel controller, EVENTQ_1 is
used. The second channel controller has only one event queue, and so,
EVENTQ_1 is an invalid option.

Fix this by explicitly setting the default queue for CC1 to be EVENTQ_0.

Signed-off-by: Ido Yariv <ido@wizery.com>
---
 arch/arm/mach-davinci/devices-da8xx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c
index fc4e98e..74114c0 100644
--- a/arch/arm/mach-davinci/devices-da8xx.c
+++ b/arch/arm/mach-davinci/devices-da8xx.c
@@ -139,6 +139,8 @@  static struct edma_soc_info *da830_edma_info[EDMA_MAX_CC] = {
 	&da830_edma_cc0_info,
 };
 
+static enum dma_event_q da850_edma_cc1_default_queue = EVENTQ_0;
+
 static struct edma_soc_info da850_edma_cc_info[] = {
 	{
 		.n_channel		= 32,
@@ -157,6 +159,7 @@  static struct edma_soc_info da850_edma_cc_info[] = {
 		.n_cc			= 1,
 		.queue_tc_mapping	= da850_queue_tc_mapping,
 		.queue_priority_mapping	= da850_queue_priority_mapping,
+		.default_queue_ptr	= &da850_edma_cc1_default_queue,
 	},
 };