devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: atmel-ssc: add phybase in device structure
@ 2012-11-20  8:38 Bo Shen
  2012-11-20  8:38 ` [PATCH 2/2] ASoC: atmel-pcm: add dma support Bo Shen
  2012-11-20  9:21 ` [PATCH 1/2] ASoC: atmel-ssc: add phybase in device structure Mark Brown
  0 siblings, 2 replies; 6+ messages in thread
From: Bo Shen @ 2012-11-20  8:38 UTC (permalink / raw)
  To: broonie, plagnioj, nicolas.ferre
  Cc: voice.shen, devicetree-discuss, alsa-devel, linux-sound,
	linux-arm-kernel

From: Nicolas Ferre <nicolas.ferre@atmel.com>

Useful for future dmaengine use.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
---
 drivers/misc/atmel-ssc.c  |    2 ++
 include/linux/atmel-ssc.h |    1 +
 2 files changed, 3 insertions(+)

diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c
index a769719..d07a9ed 100644
--- a/drivers/misc/atmel-ssc.c
+++ b/drivers/misc/atmel-ssc.c
@@ -157,6 +157,8 @@ static int ssc_probe(struct platform_device *pdev)
 		return -EINVAL;
 	}
 
+	ssc->phybase = regs->start;
+
 	ssc->clk = devm_clk_get(&pdev->dev, "pclk");
 	if (IS_ERR(ssc->clk)) {
 		dev_dbg(&pdev->dev, "no pclk clock defined\n");
diff --git a/include/linux/atmel-ssc.h b/include/linux/atmel-ssc.h
index 1ca0e32..deb0ae5 100644
--- a/include/linux/atmel-ssc.h
+++ b/include/linux/atmel-ssc.h
@@ -11,6 +11,7 @@ struct atmel_ssc_platform_data {
 
 struct ssc_device {
 	struct list_head	list;
+	resource_size_t		phybase;
 	void __iomem		*regs;
 	struct platform_device	*pdev;
 	struct atmel_ssc_platform_data *pdata;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-20  9:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-20  8:38 [PATCH 1/2] ASoC: atmel-ssc: add phybase in device structure Bo Shen
2012-11-20  8:38 ` [PATCH 2/2] ASoC: atmel-pcm: add dma support Bo Shen
2012-11-20  8:57   ` Mark Brown
2012-11-20  9:22     ` Bo Shen
2012-11-20  9:24       ` Mark Brown
2012-11-20  9:21 ` [PATCH 1/2] ASoC: atmel-ssc: add phybase in device structure Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).