All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Anand Gadiyar <gadiyar@ti.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] ARM: OMAP: Add omap34xx revision detection for ES3.1.1
Date: Tue, 22 Sep 2009 14:38:22 -0700	[thread overview]
Message-ID: <20090922213822.GE4919@atomide.com> (raw)
In-Reply-To: <1251288272-17209-1-git-send-email-gadiyar@ti.com>

* Anand Gadiyar <gadiyar@ti.com> [090826 05:04]:
> ARM: OMAP: Add omap34xx revision detection for ES3.1.1
> 
> - Add omap34xx revision detection for ES3.1.1 silicon.
> - Change default silicon to ES3.1.1
> 
> - Also minor bug-fix: ES2.0 rev field is 1, not 0.
>   - This means that ES2.0 silicon would have wrongly been
>     detected as unknown
> 
> Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
> ---
> Let me know if this should be split into a bug-fix patch,
> and a separate patch for adding ES 3.1.1 revision info.
> I felt the change was too minor to split out, since
> ES2.0 silicon is rare.
> 
> This patch is against linus' tree - so the cpu.h
> change will apply with an offset
> 
>  arch/arm/mach-omap2/id.c              |    8 ++++++--
>  arch/arm/plat-omap/include/mach/cpu.h |    1 +
>  2 files changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
> index a98201c..414c520 100644
> --- a/arch/arm/mach-omap2/id.c
> +++ b/arch/arm/mach-omap2/id.c
> @@ -185,7 +185,7 @@ void __init omap34xx_check_revision(void)
>  
>  	if (hawkeye == 0xb7ae) {
>  		switch (rev) {
> -		case 0:
> +		case 1:
>  			omap_revision = OMAP3430_REV_ES2_0;
>  			rev_name = "ES2.0";
>  			break;

Are you sure about this change? Can you please check on real
ES2.0 hardware, I believe the TRM may have a typo.

Regards,

Tony


> @@ -201,9 +201,13 @@ void __init omap34xx_check_revision(void)
>  			omap_revision = OMAP3430_REV_ES3_1;
>  			rev_name = "ES3.1";
>  			break;
> +		case 6:
> +			omap_revision = OMAP3430_REV_ES3_1_1;
> +			rev_name = "ES3.1.1";
> +			break;
>  		default:
>  			/* Use the latest known revision as default */
> -			omap_revision = OMAP3430_REV_ES3_1;
> +			omap_revision = OMAP3430_REV_ES3_1_1;
>  			rev_name = "Unknown revision\n";
>  		}
>  	}
> diff --git a/arch/arm/plat-omap/include/mach/cpu.h b/arch/arm/plat-omap/include/mach/cpu.h
> index 11e73d9..22cceb8 100644
> --- a/arch/arm/plat-omap/include/mach/cpu.h
> +++ b/arch/arm/plat-omap/include/mach/cpu.h
> @@ -392,6 +392,7 @@ IS_OMAP_TYPE(3430, 0x3430)
>  #define OMAP3430_REV_ES2_1	0x34302034
>  #define OMAP3430_REV_ES3_0	0x34303034
>  #define OMAP3430_REV_ES3_1	0x34304034
> +#define OMAP3430_REV_ES3_1_1	0x34306034
>  
>  #define OMAP443X_CLASS		0x44300034
>  
> --
> 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:[~2009-09-22 21:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-26 12:04 [PATCH] ARM: OMAP: Add omap34xx revision detection for ES3.1.1 Anand Gadiyar
2009-09-22 21:38 ` Tony Lindgren [this message]
2009-09-24 11:41   ` Gadiyar, Anand

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=20090922213822.GE4919@atomide.com \
    --to=tony@atomide.com \
    --cc=gadiyar@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 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.