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:10:17 +0100 [thread overview]
Message-ID: <20091130121017.GN27548@pengutronix.de> (raw)
In-Reply-To: <eedb5540911300356p2b41eeaakee050953ad39ec26@mail.gmail.com>
On Mon, Nov 30, 2009 at 12:56:19PM +0100, javier Martin wrote:
> Hi Sascha,
> as you know I have been testing your i.MX27 support and I have found a
> problem in this audmux patch.
>
> Please, see my comment below:
>
>
> +++ b/arch/arm/plat-mxc/audmux-v1.c
> > @@ -0,0 +1,53 @@
> > +/*
> > + * Copyright 2009 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
> > + *
> > + * Initial development of this code was funded by
> > + * Phytec Messtechnik GmbH, http://www.phytec.de
> > + *
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License as published by
> > + * the Free Software Foundation; either version 2 of the License, or
> > + * (at your option) any later version.
> > + *
> > + * This program is distributed in the hope that it will be useful,
> > + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> > + * GNU General Public License for more details.
> > + *
> > + * You should have received a copy of the GNU General Public License
> > + * along with this program; if not, write to the Free Software
> > + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
> > + */
> > +
> > +#include <linux/module.h>
> > +#include <linux/err.h>
> > +#include <linux/io.h>
> > +#include <linux/clk.h>
> > +#include <mach/audmux.h>
> > +#include <mach/hardware.h>
> > +
> > +static void __iomem *audmux_base;
> > +
> > +#define MXC_AUDMUX_V1_PCR(x) ((x) * 4)
> >
>
> 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
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2009-11-30 12:10 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 [this message]
2009-11-30 12:25 ` javier Martin
2009-11-30 12:34 ` Sascha Hauer
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=20091130121017.GN27548@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).