From: Paul Mundt <lethal@linux-sh.org>
To: Manuel Lauss <mano@roarinelk.homelinux.net>
Cc: alsa-devel@alsa-project.org, linuxsh-dev@lists.sf.net
Subject: Re: [RFC PATCH] ASoC AC97/I2S for SH7760
Date: Wed, 9 May 2007 09:52:55 +0900 [thread overview]
Message-ID: <20070509005255.GB19043@linux-sh.org> (raw)
In-Reply-To: <20070508174027.GB28884@roarinelk.homelinux.net>
On Tue, May 08, 2007 at 07:40:27PM +0200, Manuel Lauss wrote:
> diff --git a/sound/soc/sh/hac.c b/sound/soc/sh/hac.c
> new file mode 100644
> index 0000000..157268c
> --- /dev/null
> +++ b/sound/soc/sh/hac.c
[snip]
> + * dont forget to set IPSEL/OMSEL register bits (in your board code) to
> + * enable HAC output pins!
> + */
Yuck.. I suppose this is a good argument for a demux API..
> +struct hac_priv {
> + unsigned long mmio; /* HAC base address */
> +} hac_cpu_data[] = {
> +#if defined(CONFIG_CPU_SUBTYPE_SH7760)
> + {
> + .mmio = 0xFE240000,
> + },
> + {
> + .mmio = 0xFE250000,
> + },
> +#elif defined(CONFIG_CPU_SUBTYPE_SH7780)
> + {
> + .mmio = 0xFFE40000,
> + },
> +#else
> +#error "Unsupported SuperH SoC"
> +#endif
> +};
Platform device resources, please.
> diff --git a/sound/soc/sh/ssi.c b/sound/soc/sh/ssi.c
> new file mode 100644
> index 0000000..79642e0
> --- /dev/null
> +#ifdef SSI_DEBUG
> +#define MSG(x...) printk(KERN_INFO "sh4-i2s: " x)
> +#else
> +#define MSG(x...) do {} while (0)
> +#endif
> +
pr_debug()?
> +struct ssi_priv {
> + unsigned long mmio;
> + unsigned long sysclk;
> + int inuse;
> +} ssi_cpu_data[] = {
> +#if defined(CONFIG_CPU_SUBTYPE_SH7760)
> + {
> + .mmio = 0xFE680000,
> + },
> + {
> + .mmio = 0xFE690000,
> + },
> +#elif defined(CONFIG_CPU_SUBTYPE_SH7780)
> + {
> + .mmio = 0xFFE70000,
> + },
> +#else
> +#error "Unsupported SuperH SoC"
> +#endif
> +};
> +
This can also go in to a platform device resource. You'll want the
private data there anyways in case you decide to do something more
interesting with the clock.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
next prev parent reply other threads:[~2007-05-09 0:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-08 17:40 [RFC PATCH] ASoC AC97/I2S for SH7760 Manuel Lauss
2007-05-09 0:52 ` Paul Mundt [this message]
2007-05-09 5:25 ` Manuel Lauss
2007-05-09 10:25 ` Liam Girdwood
2007-05-10 0:37 ` Paul Mundt
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=20070509005255.GB19043@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=alsa-devel@alsa-project.org \
--cc=linuxsh-dev@lists.sf.net \
--cc=mano@roarinelk.homelinux.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.