From: marvin24@gmx.de (Marc Dietrich)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] Add initial support for the Toshiba AC100/Dynabook AZ netbook
Date: Mon, 7 Mar 2011 20:59:10 +0100 [thread overview]
Message-ID: <201103072059.11231.marvin24@gmx.de> (raw)
In-Reply-To: <AANLkTinncQdKy-POUN2QQJYhc20Kg6z-grUBqehu7k8x@mail.gmail.com>
Hi,
On Monday 07 March 2011 09:37:26 Olof Johansson wrote:
> On Sun, Mar 6, 2011 at 6:31 AM, Marc Dietrich <marvin24@gmx.de> wrote:
> > Signed-off-by: Marc Dietrich <marvin24@gmx.de>
>
> As Colin said, a short patch description would be appreciated.
ok.
> > diff --git a/arch/arm/mach-tegra/board-paz00-pinmux.c b/arch/arm/mach-tegra/board-paz00-pinmux.c
> > new file mode 100644
> > index 0000000..347a919
> > --- /dev/null
> > +++ b/arch/arm/mach-tegra/board-paz00-pinmux.c
> [...]
> > +static struct tegra_gpio_table gpio_table[] = {
> > + { .gpio = TEGRA_GPIO_PV5, .enable = true }, /* mmc2 cd */
> > + { .gpio = TEGRA_GPIO_PH1, .enable = true }, /* mmc2 wp */
> > + { .gpio = TEGRA_GPIO_PT3, .enable = true }, /* mmc2 pwr */
> > + { .gpio = TEGRA_GPIO_PH2, .enable = true }, /* mmc4 cd */
> > + { .gpio = TEGRA_GPIO_PH3, .enable = true }, /* mmc4 wp */
> > + { .gpio = TEGRA_GPIO_PI6, .enable = true }, /* mmc4 pwr */
> > +};
>
> Stephen Warren cleaned up Harmony and Seaboard and moved the GPIO
> definitions to board-<board>.h and gave them symbolic names. Would you
> mind doing that for these as well, please?
will do.
> > diff --git a/arch/arm/mach-tegra/board-paz00.c b/arch/arm/mach-tegra/board-paz00.c
> > new file mode 100644
> > index 0000000..a33ce98
> > --- /dev/null
> > +++ b/arch/arm/mach-tegra/board-paz00.c
> [...]
> > +static struct tegra_sdhci_platform_data sdhci_pdata1 = {
> > + .cd_gpio = -1,
> > + .wp_gpio = -1,
> > + .power_gpio = -1,
> > +};
> > +
> > +static struct tegra_sdhci_platform_data sdhci_pdata2 = {
> > + .cd_gpio = TEGRA_GPIO_PV5,
> > + .wp_gpio = TEGRA_GPIO_PH1,
> > + .power_gpio = TEGRA_GPIO_PT3,
> > +};
> > +
> > +static struct tegra_sdhci_platform_data sdhci_pdata4 = {
> > + .cd_gpio = TEGRA_GPIO_PH2,
> > + .wp_gpio = TEGRA_GPIO_PH3,
> > + .power_gpio = TEGRA_GPIO_PI6,
> > + .is_8bit = 1,
> > +};
>
> Weird, the internal eMMC has CD and WP gpios?!
Yes that's strange. On the other hand, harmony has these gpios, the Toshiba
source defines them, and they don't hurt. So I vote for keeping them for
consistency reasons.
It was good that you mentioned these gpios as I found an error in my original
post. On AC100, the external mmc is connected to the first sdhci, not the
second. Even Toshiba/Compal seem to were confused as they also added a wrong
comment to the source (which I blindly followed).
I'll send an updated version soon, which also adds PAZ00 to tegra_defconfig.
Thanks!
Marc
next prev parent reply other threads:[~2011-03-07 19:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-06 14:31 [PATCH 0/2] ARM: tegra: Add Toshiba AC100 support Marc Dietrich
2011-03-06 14:31 ` [PATCH 1/2] Add initial support for the Toshiba AC100/Dynabook AZ netbook Marc Dietrich
2011-03-06 16:34 ` Colin Cross
2011-03-07 8:37 ` Olof Johansson
2011-03-07 19:59 ` Marc Dietrich [this message]
2011-03-06 14:31 ` [PATCH 2/2] Add a default config for PAZ00 Marc Dietrich
2011-03-06 16:36 ` Colin Cross
2011-03-07 0:41 ` Olof Johansson
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=201103072059.11231.marvin24@gmx.de \
--to=marvin24@gmx.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).