linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: weitway@gmail.com (Jason Chen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/1] ARM: imx53: correct Silicon Revision definition following fuse map
Date: Tue, 22 Feb 2011 15:46:31 +0800	[thread overview]
Message-ID: <AANLkTikC-bMK=7CcbyEZWvab=Qe19TJBGWGC6tmN5gnd@mail.gmail.com> (raw)
In-Reply-To: <1298031990-4521-1-git-send-email-richard.zhao@freescale.com>

2011/2/18 Richard Zhao <richard.zhao@freescale.com>:
> Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Acked-by: Jason Chen <jason.chen@freescale.com>
>
> diff --git a/arch/arm/mach-mx5/cpu.c b/arch/arm/mach-mx5/cpu.c
> index d40671d..df46b5e 100644
> --- a/arch/arm/mach-mx5/cpu.c
> +++ b/arch/arm/mach-mx5/cpu.c
> @@ -78,11 +78,16 @@ static int get_mx53_srev(void)
> ? ? ? ?void __iomem *iim_base = MX51_IO_ADDRESS(MX53_IIM_BASE_ADDR);
> ? ? ? ?u32 rev = readl(iim_base + IIM_SREV) & 0xff;
>
> - ? ? ? if (rev == 0x0)
> + ? ? ? switch (rev) {
> + ? ? ? case 0x0:
> ? ? ? ? ? ? ? ?return IMX_CHIP_REVISION_1_0;
> - ? ? ? else if (rev == 0x10)
> + ? ? ? case 0x2:
> ? ? ? ? ? ? ? ?return IMX_CHIP_REVISION_2_0;
> - ? ? ? return 0;
> + ? ? ? case 0x3:
> + ? ? ? ? ? ? ? return IMX_CHIP_REVISION_2_1;
> + ? ? ? default:
> + ? ? ? ? ? ? ? return IMX_CHIP_REVISION_UNKNOWN;
> + ? ? ? }
> ?}
>
> ?/*
> --
> 1.7.1
>
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>

  reply	other threads:[~2011-02-22  7:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-18 12:26 [PATCH v2 1/1] ARM: imx53: correct Silicon Revision definition following fuse map Richard Zhao
2011-02-22  7:46 ` Jason Chen [this message]
2011-02-28  7:23   ` Richard Zhao

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='AANLkTikC-bMK=7CcbyEZWvab=Qe19TJBGWGC6tmN5gnd@mail.gmail.com' \
    --to=weitway@gmail.com \
    --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).