linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jason Kridner <jkridner@beagleboard.org>
To: "Kooi, Koen" <k-kooi@ti.com>
Cc: "Fernandes, Joel A" <joelagnel@ti.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"beagle@list.ti.com - Ultra-low cost OMAP3 board (May contain
	non-TIers)" <beagle@list.ti.com>,
	"beagleboard@googlegroups.com" <beagleboard@googlegroups.com>,
	"Maupin, Chase" <chase.maupin@ti.com>
Subject: Re: [PATCH v6] OMAP3: beagle: add support for beagleboard xM revision C
Date: Sat, 4 Jun 2011 10:11:08 -0400	[thread overview]
Message-ID: <BANLkTinodyTjcD-Pd==M0MApBhj7xAZsrw@mail.gmail.com> (raw)
In-Reply-To: <13872098A06B02418CF379A158C0F14601606D6821@dnce02.ent.ti.com>

On Sat, Jun 4, 2011 at 4:01 AM, Kooi, Koen <k-kooi@ti.com> wrote:
>
>
> Texas Instruments Limited, 800 Pavilion Drive, Northampton, NN4 7YL. Registered in England & Wales under company number 00574102
>
> ________________________________________
>
> From: Fernandes, Joel A
> Sent: 03 June 2011 23:56
> To: linux-omap@vger.kernel.org
> Cc: beagle@list.ti.com - Ultra-low cost OMAP3 board (May contain non-TIers); beagleboard@googlegroups.com; Maupin, Chase
> Subject: [beagle] [PATCH v6] OMAP3: beagle: add support for beagleboard xM revision C
>
> The USB enable GPIO has been in beagleboard xM revision C
> The USER button has been moved since beagleboard xM
> Also, board specific initialization has been moved to beagle_config struct
> and initialized in omap3_beagle_init_rev. Default values in struct are for xMC.
>
> Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> ---
>  arch/arm/mach-omap2/board-omap3beagle.c |   70 ++++++++++++++++++++-----------
>  1 files changed, 46 insertions(+), 24 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-omap3beagle.c
> b/arch/arm/mach-omap2/board-omap3beagle.c
> index 7f21d24..261fb53 100644
> --- a/arch/arm/mach-omap2/board-omap3beagle.c
> +++ b/arch/arm/mach-omap2/board-omap3beagle.c
>
> @@ -276,9 +297,7 @@ static int beagle_twl_gpio_setup(struct device *dev,
>         * high / others active low)
>         * DVI reset GPIO is different between beagle revisions
>         */
> -       if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) {
> -               usb_pwr_level = GPIOF_OUT_INIT_HIGH;
> -               beagle_dvi_device.reset_gpio = 129;
> +       if (cpu_is_omap3630()) {
>
> PLease add a comment like "valid for all xM versions" to the above.
>
> @@ -526,7 +545,7 @@ static void __init beagle_opp_init(void)
>        }
>
>        /* Custom OPP enabled for XM */
> -       if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) {
> +       if (cpu_is_omap3630()) {
>
> same
>
> @@ -566,6 +585,9 @@ static void __init omap3_beagle_init(void)
>        omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
>        omap3_beagle_init_rev();
>        omap3_beagle_i2c_init();
> +
> +       gpio_buttons[0].gpio = beagle_config.usr_button_gpio;
> +
>
> And please move that into
>
> static struct gpio_keys_button gpio_buttons[] = {
>    {
>        .code           = BTN_EXTRA,
>        .gpio           = 7,  <- there

I don't follow.  The other assignment is dynamic, following the
detection of the board revision and, hopefully, before the
initialization of the GPIO button.  I don't see how it can be moved
here.  Perhaps it might be better to set it to -EINVAL to indicate it
will be assigned later?

>        .desc           = "user",
>        .wakeup         = 1,
>    },
> }
>
> regards,
>
> Koen
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-06-04 14:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AQHMIjbc1GOjdu39Zku6xIzu4J56tg==>
2011-06-03 21:56 ` [PATCH v6] OMAP3: beagle: add support for beagleboard xM revision C Fernandes, Joel A
2011-06-04  8:01   ` Kooi, Koen
2011-06-04 14:11     ` Jason Kridner [this message]
2011-06-04 14:26       ` [beagleboard] " Koen Kooi
2011-06-04 14:07   ` Jason Kridner

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='BANLkTinodyTjcD-Pd==M0MApBhj7xAZsrw@mail.gmail.com' \
    --to=jkridner@beagleboard.org \
    --cc=beagle@list.ti.com \
    --cc=beagleboard@googlegroups.com \
    --cc=chase.maupin@ti.com \
    --cc=joelagnel@ti.com \
    --cc=k-kooi@ti.com \
    --cc=linux-omap@vger.kernel.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).