From: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
To: Peter De Schrijver
<pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
Colin Cross <ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org>,
Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v2 5/8] arm/tegra: add new fields to struct tegra_pingroup_desc
Date: Fri, 4 Nov 2011 14:06:29 -0700 [thread overview]
Message-ID: <20111104210629.GA4685@quad.lixom.net> (raw)
In-Reply-To: <1320242948-21061-6-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
On Wed, Nov 02, 2011 at 04:09:04PM +0200, Peter De Schrijver wrote:
> Add new fields to struct tegra_pingroup_desc to support new hardware features
> introduced in the tegra30 SoC. The pinmux driver won't use those fields yet,
> but the tegra30 pinmux tables will already provide the necessary data.
>
> Signed-off-by: Peter De Schrijver <pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Just a nit below.
> ---
> arch/arm/mach-tegra/include/mach/pinmux.h | 10 ++++++++++
> arch/arm/mach-tegra/pinmux-tegra20-tables.c | 4 ++++
> 2 files changed, 14 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-tegra/include/mach/pinmux.h b/arch/arm/mach-tegra/include/mach/pinmux.h
> index fb101f5..1ea2018 100644
> --- a/arch/arm/mach-tegra/include/mach/pinmux.h
> +++ b/arch/arm/mach-tegra/include/mach/pinmux.h
> @@ -2,6 +2,7 @@
> * linux/arch/arm/mach-tegra/include/mach/pinmux.h
> *
> * Copyright (C) 2010 Google, Inc.
> + * Copyright (C) 2010,2011 Nvidia, Inc.
> *
> * This software is licensed under the terms of the GNU General Public
> * License version 2, as published by the Free Software Foundation, and
> @@ -99,6 +100,11 @@ enum tegra_tristate {
> TEGRA_TRI_TRISTATE = 1,
> };
>
> +enum tegra_pin_io {
> + TEGRA_PIN_OUTPUT = 0,
> + TEGRA_PIN_INPUT = 1,
> +};
> +
> enum tegra_vddio {
> TEGRA_VDDIO_BB = 0,
> TEGRA_VDDIO_LCD,
> @@ -211,6 +217,10 @@ struct tegra_pingroup_desc {
> s8 tri_bit; /* offset into the TRISTATE_REG_* register bit */
> s8 mux_bit; /* offset into the PIN_MUX_CTL_* register bit */
> s8 pupd_bit; /* offset into the PULL_UPDOWN_REG_* register bit */
> + s8 lock_bit; /* offset of the LOCK bit into mux register bit */
> + s8 od_bit; /* offset of the OD bit into mux register bit */
> + s8 ioreset_bit; /* offset of the IO_RESET bit into mux register bit */
> + s8 io_default;
Shouldn't this be an enum tegra_pin_io? Also, feel free to move it up above the
s16/s8 members.
-Olof
next prev parent reply other threads:[~2011-11-04 21:06 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-02 14:08 [PATCH v2 0/8] Add support for tegra30 and cardhu Peter De Schrijver
2011-11-02 14:09 ` [PATCH v2 1/8] arm/tegra: initial device tree for tegra30 Peter De Schrijver
[not found] ` <1320242948-21061-2-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-11-04 20:29 ` Stephen Warren
[not found] ` <1320242948-21061-1-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-11-02 14:09 ` [PATCH v2 2/8] arm/tegra: prepare early init for multiple tegra variants Peter De Schrijver
[not found] ` <1320242948-21061-3-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-11-02 18:30 ` Colin Cross
[not found] ` <CAMbhsRSTcR8qgYESmM6OxkXeVeg6vS49woCe_OX6CY4pAj2g_A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-03 9:21 ` Peter De Schrijver
2011-11-03 10:02 ` Russell King - ARM Linux
[not found] ` <20111103100235.GK12913-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2011-11-04 15:09 ` Olof Johansson
2011-11-04 16:30 ` Russell King - ARM Linux
[not found] ` <20111103092116.GO13358-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2011-11-07 12:36 ` Peter De Schrijver
2011-11-02 14:09 ` [PATCH v2 3/8] arm/tegra: rename tegra20 pinmux files Peter De Schrijver
2011-11-02 14:09 ` [PATCH v2 5/8] arm/tegra: add new fields to struct tegra_pingroup_desc Peter De Schrijver
[not found] ` <1320242948-21061-6-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-11-04 21:06 ` Olof Johansson [this message]
2011-11-02 14:09 ` [PATCH v2 4/8] arm/tegra: prepare pinmux code for multiple tegra variants Peter De Schrijver
[not found] ` <1320242948-21061-5-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-11-04 20:35 ` Stephen Warren
2011-11-02 14:09 ` [PATCH v2 6/8] arm/tegra: pinmux tables and definitions for tegra30 Peter De Schrijver
2011-11-02 14:09 ` [PATCH v2 7/8] arm/tegra: implement support " Peter De Schrijver
[not found] ` <1320242948-21061-8-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-11-04 20:43 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF173F9A4E4F-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-11-07 12:47 ` Peter De Schrijver
2011-11-02 14:09 ` [PATCH v2 8/8] arm/tegra: add support for tegra30 based board cardhu Peter De Schrijver
[not found] ` <1320242948-21061-9-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-11-02 15:46 ` Peter De Schrijver
[not found] ` <20111102154610.GJ13358-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2011-11-02 16:07 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF173F9A46C4-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-11-02 16:19 ` Peter De Schrijver
[not found] ` <20111102161919.GM13358-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2011-11-02 16:24 ` 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=20111104210629.GA4685@quad.lixom.net \
--to=olof-nzht3qvonbneowh0uzbu5w@public.gmane.org \
--cc=ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.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