From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 8/9 v2] MXC: Add a digital audio multiplexer driver
Date: Mon, 30 Nov 2009 13:34:12 +0100 [thread overview]
Message-ID: <20091130123412.GP27548@pengutronix.de> (raw)
In-Reply-To: <eedb5540911300425n374af9f0k5346d85fdb79eb11@mail.gmail.com>
On Mon, Nov 30, 2009 at 01:25:12PM +0100, javier Martin wrote:
> > > You cannot calculate AUDMUX register offsets this way because according
> > to
> > > i.MX27 manual:
> > >
> > > 0x1001_6000 (HPCR1)
> > > 0x1001_6004 (HPCR2)
> > > 0x1001_6008 (HPCR3)
> > > 0x1001_6010 (PPCR1) <-- You are using 0x0C for this
> > > 0x1001_6014 (PPCR2) <--- You are using 0x10 for this
> > > 0x1001_601C (PPCR3) <--- You are using 0x18 for this
> >
> > It's fine the way it is. See mach/audmux.h:
> >
> > #define MX27_AUDMUX_HPCR1_SSI0 0
> > #define MX27_AUDMUX_HPCR2_SSI1 1
> > #define MX27_AUDMUX_HPCR3_SSI_PINS_4 2
> > #define MX27_AUDMUX_PPCR1_SSI_PINS_1 3
> > #define MX27_AUDMUX_PPCR2_SSI_PINS_2 4
> > #define MX27_AUDMUX_PPCR3_SSI_PINS_3 5
> >
>
>
> Sorry for my insistence but, unless I am missing something weird, I have
> looked at mach/audmux.h and still think that it is wrong:
>
> AUDMUX PORT Your offset i.MX27 Manual offset
> --------------------------- ------------------
> ---------------------------------------
> (0) HPCR1 (0 x 4) = 0x0 0x00
> (1) HPCR2 (1 x 4) = 0x4 0x04
> (2) HPCR3 (2 x 4) = 0x8 0x08
> (3) PPCR1 (3 x 4) = 0xC 0x10
> (4) HPCR2 (4 x 4) = 0x10 0x14
> (5) HPCR3 (5 x 4) = 0x14 0x1C
Oops, you're right. I have overlooked this whole in the register space.
The following should fix it.
Sascha
next prev parent reply other threads:[~2009-11-30 12:34 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-12 10:41 MXC patches for next merge window Sascha Hauer
2009-11-12 10:41 ` [PATCH 1/9] MXC NFC: Add the clock resource to support NFC in i.MX35 Sascha Hauer
2009-11-12 10:41 ` [PATCH 2/9] MXC NFC: Fix NFCs address area on i.MX35 Sascha Hauer
2009-11-12 10:41 ` [PATCH 3/9] pca100: Add board to uncompress.h Sascha Hauer
2009-11-12 10:42 ` [PATCH 4/9] pca100: use correct irq initialisation function Sascha Hauer
2009-11-12 10:42 ` [PATCH 5/9] pcm043: Add NAND support Sascha Hauer
2009-11-12 10:42 ` [PATCH 6/9] i.MX2: Add sound (ssi) resources Sascha Hauer
2009-11-12 10:42 ` [PATCH 7/9] i.MX3: " Sascha Hauer
2009-11-12 10:42 ` [PATCH 8/9] MXC: Add a digital audio multiplexer (DAM) driver Sascha Hauer
2009-11-12 10:42 ` [PATCH 9/9] i.MX35: Fix audmux clock Sascha Hauer
2009-11-12 12:47 ` [PATCH 8/9] MXC: Add a digital audio multiplexer (DAM) driver Mark Brown
2009-11-12 13:04 ` Sascha Hauer
2009-11-12 15:06 ` [PATCH 8/9 v2] MXC: Add a digital audio multiplexer driver Sascha Hauer
2009-11-12 22:32 ` Russell King - ARM Linux
2009-11-13 7:29 ` Sascha Hauer
2009-11-30 11:56 ` javier Martin
2009-11-30 12:10 ` Sascha Hauer
2009-11-30 12:25 ` javier Martin
2009-11-30 12:34 ` Sascha Hauer [this message]
2009-11-30 13:09 ` javier Martin
2009-11-30 16:03 ` Sascha Hauer
2009-11-30 16:15 ` javier Martin
2009-11-30 16:18 ` Sascha Hauer
2009-12-02 11:20 ` Sascha Hauer
2009-12-02 12:46 ` javier Martin
2009-11-12 12:43 ` [PATCH 5/9] pcm043: Add NAND support Fabio Estevam
2009-11-12 13:06 ` Sascha Hauer
2009-11-12 20:04 ` [PATCH 2/9] MXC NFC: Fix NFCs address area on i.MX35 Magnus Lilja
2009-11-13 7:29 ` Sascha Hauer
2009-11-18 9:49 ` MXC patches for next merge window Sascha Hauer
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=20091130123412.GP27548@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).