* [PATCH v2 1/1] ARM: imx53: correct Silicon Revision definition following fuse map
@ 2011-02-18 12:26 Richard Zhao
2011-02-22 7:46 ` Jason Chen
0 siblings, 1 reply; 3+ messages in thread
From: Richard Zhao @ 2011-02-18 12:26 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Richard Zhao <richard.zhao@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
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH v2 1/1] ARM: imx53: correct Silicon Revision definition following fuse map
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
2011-02-28 7:23 ` Richard Zhao
0 siblings, 1 reply; 3+ messages in thread
From: Jason Chen @ 2011-02-22 7:46 UTC (permalink / raw)
To: linux-arm-kernel
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH v2 1/1] ARM: imx53: correct Silicon Revision definition following fuse map
2011-02-22 7:46 ` Jason Chen
@ 2011-02-28 7:23 ` Richard Zhao
0 siblings, 0 replies; 3+ messages in thread
From: Richard Zhao @ 2011-02-28 7:23 UTC (permalink / raw)
To: linux-arm-kernel
Hi Sascha,
Could you please merge this patch?
Thanks
Richard
On Tue, Feb 22, 2011 at 03:46:31PM +0800, Jason Chen wrote:
> 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
> >
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-28 7:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-02-28 7:23 ` Richard Zhao
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).