From: Bo Shen <voice.shen@atmel.com>
To: broonie@opensource.wolfsonmicro.com, plagnioj@jcrosoft.com,
nicolas.ferre@atmel.com
Cc: voice.shen@atmel.com, devicetree-discuss@lists.ozlabs.org,
alsa-devel@alsa-project.org, linux-sound@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ASoC: atmel-ssc: add phybase in device structure
Date: Tue, 20 Nov 2012 08:38:17 +0000 [thread overview]
Message-ID: <1353400698-19384-1-git-send-email-voice.shen@atmel.com> (raw)
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
next reply other threads:[~2012-11-20 8:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-20 8:38 Bo Shen [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1353400698-19384-1-git-send-email-voice.shen@atmel.com \
--to=voice.shen@atmel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-sound@vger.kernel.org \
--cc=nicolas.ferre@atmel.com \
--cc=plagnioj@jcrosoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox