dw_dmac: Pass Channel Allocation Order from platform_data
authorViresh Kumar <viresh.kumar@st.com>
Thu, 3 Mar 2011 10:17:21 +0000 (15:47 +0530)
committerVinod Koul <vinod.koul@intel.com>
Sun, 6 Mar 2011 19:42:28 +0000 (01:12 +0530)
commitb0c3130d69bda5cd91aa3b3f08e7878df49fde69
treea75091d3489cc2db2a806cd30d0ef6f80419e86d
parente518076ef8cb56adb558ff56ad5bfa0cd9f3abd9
dw_dmac: Pass Channel Allocation Order from platform_data

In SPEAr Platform channels 4-7 have more Fifo depth. So we must get better
channel first. This patch introduces concept of channel allocation order in
dw_dmac. If user doesn't pass anything or 0, than normal (ascending) channel
allocation will follow, else channels will be allocated in descending order.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw_dmac.c
include/linux/dw_dmac.h