diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-02-20 15:52:17 +0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-03-30 03:04:07 +0400 |
commit | bce95c63ef1bcf528ea45c41505eb4c21560d92d (patch) | |
tree | 4ca2d02533a8ebf1341a9b81a4f046ca651ab0d6 /drivers/dma/dw_dmac_regs.h | |
parent | f73bb9b35596e045feacdf4d2fd32cfb087e2411 (diff) | |
download | linux-bce95c63ef1bcf528ea45c41505eb4c21560d92d.tar.xz |
dw_dmac: adjust slave_id accordingly to request line base
On some hardware configurations we have got the request line with the offset.
The patch introduces convert_slave_id() helper for that cases. The request line
base is came from the driver data provided by the platform_device_id table.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw_dmac_regs.h')
-rw-r--r-- | drivers/dma/dw_dmac_regs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dw_dmac_regs.h b/drivers/dma/dw_dmac_regs.h index cf0ce5c77d60..4d02c3669b75 100644 --- a/drivers/dma/dw_dmac_regs.h +++ b/drivers/dma/dw_dmac_regs.h @@ -247,6 +247,7 @@ struct dw_dma { /* hardware configuration */ unsigned char nr_masters; unsigned char data_width[4]; + unsigned int request_line_base; struct dw_dma_chan chan[0]; }; |