Commit 31974361 authored by Nicolas Ferre's avatar Nicolas Ferre Committed by Mark Brown

ASoC: atmel-ssc: add phybase in device structure

Useful for future dmaengine use.
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 531f67e4
...@@ -157,6 +157,8 @@ static int ssc_probe(struct platform_device *pdev) ...@@ -157,6 +157,8 @@ static int ssc_probe(struct platform_device *pdev)
return -EINVAL; return -EINVAL;
} }
ssc->phybase = regs->start;
ssc->clk = devm_clk_get(&pdev->dev, "pclk"); ssc->clk = devm_clk_get(&pdev->dev, "pclk");
if (IS_ERR(ssc->clk)) { if (IS_ERR(ssc->clk)) {
dev_dbg(&pdev->dev, "no pclk clock defined\n"); dev_dbg(&pdev->dev, "no pclk clock defined\n");
......
...@@ -11,6 +11,7 @@ struct atmel_ssc_platform_data { ...@@ -11,6 +11,7 @@ struct atmel_ssc_platform_data {
struct ssc_device { struct ssc_device {
struct list_head list; struct list_head list;
resource_size_t phybase;
void __iomem *regs; void __iomem *regs;
struct platform_device *pdev; struct platform_device *pdev;
struct atmel_ssc_platform_data *pdata; struct atmel_ssc_platform_data *pdata;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment