dw_dmac: Pass Channel Priority from platform_data
authorViresh Kumar <viresh.kumar@st.com>
Thu, 3 Mar 2011 10:17:22 +0000 (15:47 +0530)
committerVinod Koul <vinod.koul@intel.com>
Sun, 6 Mar 2011 19:42:28 +0000 (01:12 +0530)
commit93317e8e35b77633d589fe0e132291195757d785
treec3419c1a02e3952506ca0af281f9f9c5bc52888d
parentb0c3130d69bda5cd91aa3b3f08e7878df49fde69
dw_dmac: Pass Channel Priority from platform_data

In Synopsys designware, channel priority is programmable. This patch adds
support for passing channel priority through platform data. By default Ascending
channel priority will be followed, i.e. channel 0 will get highest priority and
channel 7 will get lowest.

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