提交 20413113 编写于 作者: F Fabio Baltieri 提交者: Mark Brown

ASoC: ux500: Set DMA address during device init

Add a field with the tx/rx register address to the DMA parameters
structure, and set it to the correct address during device
initialization.

This address used to be hardcoded in the DMA controller driver, it now
needs to be explicitly figured out by the device driver.
Signed-off-by: NFabio Baltieri <fabio.baltieri@linaro.org>
Acked-by: NLinus Walleij <linus.walleij@linaro.org>
Acked-by: NLee Jones <lee.jones@linaro.org>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 f3fe53dd
...@@ -685,6 +685,9 @@ int ux500_msp_i2s_init_msp(struct platform_device *pdev, ...@@ -685,6 +685,9 @@ int ux500_msp_i2s_init_msp(struct platform_device *pdev,
return -ENOMEM; return -ENOMEM;
} }
msp->playback_dma_data.tx_rx_addr = res->start + MSP_DR;
msp->capture_dma_data.tx_rx_addr = res->start + MSP_DR;
msp->registers = devm_ioremap(&pdev->dev, res->start, msp->registers = devm_ioremap(&pdev->dev, res->start,
resource_size(res)); resource_size(res));
if (msp->registers == NULL) { if (msp->registers == NULL) {
......
...@@ -470,6 +470,7 @@ struct ux500_msp_config { ...@@ -470,6 +470,7 @@ struct ux500_msp_config {
struct ux500_msp_dma_params { struct ux500_msp_dma_params {
unsigned int data_size; unsigned int data_size;
dma_addr_t tx_rx_addr;
struct stedma40_chan_cfg *dma_cfg; struct stedma40_chan_cfg *dma_cfg;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册