From: olof@lixom.net (Olof Johansson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 06/10] arm/tegra: prepare pinmux code for multiple tegra variants
Date: Tue, 22 Nov 2011 11:01:46 -0800 [thread overview]
Message-ID: <20111122190146.GA31361@quad.lixom.net> (raw)
In-Reply-To: <20111121142919.GN19069@tbergstrom-lnx.Nvidia.com>
On Mon, Nov 21, 2011 at 04:29:19PM +0200, Peter De Schrijver wrote:
> On Fri, Nov 18, 2011 at 10:41:16PM +0100, Olof Johansson wrote:
> > On Thu, Nov 17, 2011 at 06:19:20PM +0200, Peter De Schrijver wrote:
> > > This patch modifies the pinmux code to be useable for multiple tegra variants.
> > > Some tegra20 specific constants will be replaced by variables which will be
> > > initialized to the appropriate value at runtime.
> > >
> > > Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
> > > ---
> > > arch/arm/mach-tegra/board-harmony-pcie.c | 1 +
> > > arch/arm/mach-tegra/board-harmony-pinmux.c | 1 +
> > > arch/arm/mach-tegra/board-paz00-pinmux.c | 1 +
> > > arch/arm/mach-tegra/board-trimslice-pinmux.c | 1 +
> > > arch/arm/mach-tegra/include/mach/pinmux.h | 25 +++----
> > > arch/arm/mach-tegra/pinmux-tegra20-tables.c | 15 +++-
> > > arch/arm/mach-tegra/pinmux.c | 105 ++++++++++++++-----------
> > > 7 files changed, 86 insertions(+), 63 deletions(-)
> > >
> > > diff --git a/arch/arm/mach-tegra/board-harmony-pcie.c b/arch/arm/mach-tegra/board-harmony-pcie.c
> > > index 6db7d69..bd402d0 100644
> > > --- a/arch/arm/mach-tegra/board-harmony-pcie.c
> > > +++ b/arch/arm/mach-tegra/board-harmony-pcie.c
> > > @@ -23,6 +23,7 @@
> > > #include <asm/mach-types.h>
> > >
> > > #include <mach/pinmux.h>
> > > +#include <mach/pinmux-tegra20.h>
> >
> > Boards shouldn't have to include this. The idea is that you should only
> > have to do board code against the pinmux.h interface, which internally
> > abstracts it for tegra 20 vs tegra 30.
>
> The pinmux naming is still SoC specific. Unless we move this to devicetree
> (which should be part of a different patchset), I don't see how we can solve
> this, except by renaming all the pingroups. That would cause a lot more
> changes though.
If the pinmux naming and numbering is unique per SoC then sharing
namespace for them could be a source of confusion. If we need to keep
them around much longer, then doing that rename would be a good idea. But
we can do that separately from this change. So the include change is ok
for now.
My other comments about the code changes still stands though, so please
address those.
-Olof
next prev parent reply other threads:[~2011-11-22 19:01 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-17 16:19 [PATCH v5 00/10] Add support for tegra30 and cardhu Peter De Schrijver
2011-11-17 16:19 ` [PATCH 01/10] arm/tegra: initial device tree for tegra30 Peter De Schrijver
2011-11-17 19:39 ` Stephen Warren
2011-11-18 18:49 ` Olof Johansson
2011-11-18 19:30 ` Rob Herring
2011-11-18 21:48 ` Olof Johansson
2011-11-18 22:03 ` Rob Herring
2011-11-17 16:19 ` [PATCH 02/10] arm/tegra: cleanup tegra20 support Peter De Schrijver
2011-11-17 16:19 ` [PATCH 03/10] arm/tegra: prepare clock code for multiple tegra variants Peter De Schrijver
2011-11-18 19:06 ` Olof Johansson
2011-11-18 20:18 ` Stephen Warren
2011-11-18 21:25 ` Olof Johansson
2011-11-18 21:38 ` Stephen Warren
2011-11-21 12:44 ` Peter De Schrijver
2011-11-17 16:19 ` [PATCH 04/10] arm/tegra: prepare early init " Peter De Schrijver
2011-11-17 16:55 ` Russell King - ARM Linux
2011-11-17 16:19 ` [PATCH 05/10] arm/tegra: rename tegra20 pinmux files Peter De Schrijver
2011-11-17 16:19 ` [PATCH 06/10] arm/tegra: prepare pinmux code for multiple tegra variants Peter De Schrijver
2011-11-18 21:41 ` Olof Johansson
2011-11-21 14:29 ` Peter De Schrijver
2011-11-21 17:24 ` Stephen Warren
2011-11-22 19:01 ` Olof Johansson [this message]
2011-11-23 3:22 ` Peter De Schrijver
2011-11-17 16:19 ` [PATCH 07/10] arm/tegra: add new fields to struct tegra_pingroup_desc Peter De Schrijver
2011-11-17 16:19 ` [PATCH 08/10] arm/tegra: pinmux tables and definitions for tegra30 Peter De Schrijver
2011-11-18 21:43 ` Olof Johansson
2011-11-18 21:51 ` Stephen Warren
2011-11-18 21:56 ` Olof Johansson
2011-11-17 16:19 ` [PATCH 09/10] arm/tegra: implement support " Peter De Schrijver
2011-11-17 19:50 ` Stephen Warren
2011-11-17 16:19 ` [PATCH 10/10] arm/tegra: add support for tegra30 based board cardhu Peter De Schrijver
2011-11-17 16:49 ` [PATCH v5 00/10] Add support for tegra30 and cardhu Peter De Schrijver
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=20111122190146.GA31361@quad.lixom.net \
--to=olof@lixom.net \
--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).