From: Tony Lindgren <tony@atomide.com>
To: Robert Nelson <robertcnelson@gmail.com>
Cc: linux-omap@vger.kernel.org, Jarkko Nikula <jhnikula@gmail.com>
Subject: Re: [PATCH v4 1/3] ARM: OMAP: Beagle: revision detection
Date: Tue, 17 Aug 2010 09:10:23 +0300 [thread overview]
Message-ID: <20100817061022.GC12184@atomide.com> (raw)
In-Reply-To: <1281969403-28312-1-git-send-email-robertcnelson@gmail.com>
* Robert Nelson <robertcnelson@gmail.com> [100816 17:29]:
> Due to the omap3530 ES3.0 Silicon being used on both the
> B5/B6 and C1/2/3 Beagle we can't use the cpu_is_omap34xx()
> routines to differentiate the Beagle Boards.
>
> However gpio pins 171,172,173 where setup for this prupose, so
> lets use them.
>
> Changes:
> for older U-Boot's, use omap_mux_init_gpio()
> keep Beagle Rev in board-omap3beagle.c
>
> Tested on Beagle Revisions: B5, C2, C4, and xMA
Looks good, just one minor comment below.
> Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
> Cc: Jarkko Nikula <jhnikula@gmail.com>
> ---
> arch/arm/mach-omap2/board-omap3beagle.c | 79 +++++++++++++++++++++++++++++++
> 1 files changed, 79 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
> index 87969c7..01a288f 100644
> --- a/arch/arm/mach-omap2/board-omap3beagle.c
> +++ b/arch/arm/mach-omap2/board-omap3beagle.c
> @@ -50,6 +50,84 @@
>
> #define NAND_BLOCK_SIZE SZ_128K
>
> +/*
> + * OMAP3 Beagle revision
> + * Run time detection of Beagle revision is done by reading GPIO.
> + * GPIO ID -
> + * AXBX = GPIO173, GPIO172, GPIO171: 1 1 1
> + * C1_3 = GPIO173, GPIO172, GPIO171: 1 1 0
> + * C4 = GPIO173, GPIO172, GPIO171: 1 0 1
> + * XM = GPIO173, GPIO172, GPIO171: 0 0 0
> + */
> +enum {
> + OMAP3BEAGLE_BOARD_AXBX = 0,
> + OMAP3BEAGLE_BOARD_C1_3,
> + OMAP3BEAGLE_BOARD_C4,
> + OMAP3BEAGLE_BOARD_XM,
> +};
> +
> +static u8 omap3_beagle_version;
> +
> +u8 get_omap3_beagle_rev(void)
> +{
> + return omap3_beagle_version;
> +}
Please make this static u8 get_omap3_beagle_rev().
Regards,
Tony
next prev parent reply other threads:[~2010-08-17 6:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-16 14:36 [PATCH v4 1/3] ARM: OMAP: Beagle: revision detection Robert Nelson
2010-08-16 14:36 ` [PATCH v4 2/3] ARM: OMAP: Beagle: only Cx boards use pin 23 for write protect Robert Nelson
2010-08-16 14:36 ` [PATCH v4 3/3] ARM: OMAP: Beagle: no gpio_wp pin connection on xM Robert Nelson
2010-08-17 5:48 ` [PATCH v4 1/3] ARM: OMAP: Beagle: revision detection Jarkko Nikula
2010-08-17 20:10 ` Robert Nelson
2010-08-18 6:34 ` Jarkko Nikula
2010-08-17 6:10 ` Tony Lindgren [this message]
2010-08-17 20:11 ` Robert Nelson
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=20100817061022.GC12184@atomide.com \
--to=tony@atomide.com \
--cc=jhnikula@gmail.com \
--cc=linux-omap@vger.kernel.org \
--cc=robertcnelson@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.