* [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection
@ 2013-07-11 0:23 ` Haijun Zhang
0 siblings, 0 replies; 10+ messages in thread
From: Haijun Zhang @ 2013-07-11 0:23 UTC (permalink / raw)
To: linux-mmc, linuxppc-dev
Cc: cbouatmailru, cjb, scottwood, AFLEMING, r39252, Haijun Zhang,
Zhao Chenhui
Add this file to help detect cpu type in runtime.
These macros will be more favorable for driver
to apply errata and workaround to specified cpu type.
Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
---
changes for v3:
- remove get_svr and is_svr_rev
arch/powerpc/include/asm/mpc85xx.h | 47 ++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 arch/powerpc/include/asm/mpc85xx.h
diff --git a/arch/powerpc/include/asm/mpc85xx.h b/arch/powerpc/include/asm/mpc85xx.h
new file mode 100644
index 0000000..824b619
--- /dev/null
+++ b/arch/powerpc/include/asm/mpc85xx.h
@@ -0,0 +1,47 @@
+/*
+ * MPC85xx cpu type detection
+ *
+ * Copyright 2011-2012 Freescale Semiconductor, Inc.
+ *
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#ifndef __ASM_PPC_MPC85XX_H
+#define __ASM_PPC_MPC85XX_H
+
+#define SVR_REV(svr) ((svr) & 0xFF) /* SOC design resision */
+#define SVR_MAJ(svr) (((svr) >> 4) & 0xF) /* Major revision field*/
+#define SVR_MIN(svr) (((svr) >> 0) & 0xF) /* Minor revision field*/
+
+/* Some parts define SVR[0:23] as the SOC version */
+#define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFF7FF) /* SOC Version fields */
+
+#define SVR_8533 0x803400
+#define SVR_8535 0x803701
+#define SVR_8536 0x803700
+#define SVR_8540 0x803000
+#define SVR_8541 0x807200
+#define SVR_8543 0x803200
+#define SVR_8544 0x803401
+#define SVR_8545 0x803102
+#define SVR_8547 0x803101
+#define SVR_8548 0x803100
+#define SVR_8555 0x807100
+#define SVR_8560 0x807000
+#define SVR_8567 0x807501
+#define SVR_8568 0x807500
+#define SVR_8569 0x808000
+#define SVR_8572 0x80E000
+#define SVR_P1010 0x80f900
+#define SVR_P2041 0x821001
+#define SVR_P3041 0x821103
+#define SVR_P5010 0x822100
+#define SVR_P5020 0x822000
+#define SVR_P5040 0x820400
+#define SVR_T4240 0x824800
+#define SVR_B4860 0x868800
+
+#endif
--
1.8.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection
@ 2013-07-11 0:23 ` Haijun Zhang
0 siblings, 0 replies; 10+ messages in thread
From: Haijun Zhang @ 2013-07-11 0:23 UTC (permalink / raw)
To: linux-mmc, linuxppc-dev
Cc: Zhao Chenhui, r39252, AFLEMING, cbouatmailru, scottwood, cjb,
Haijun Zhang
Add this file to help detect cpu type in runtime.
These macros will be more favorable for driver
to apply errata and workaround to specified cpu type.
Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
---
changes for v3:
- remove get_svr and is_svr_rev
arch/powerpc/include/asm/mpc85xx.h | 47 ++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 arch/powerpc/include/asm/mpc85xx.h
diff --git a/arch/powerpc/include/asm/mpc85xx.h b/arch/powerpc/include/asm/mpc85xx.h
new file mode 100644
index 0000000..824b619
--- /dev/null
+++ b/arch/powerpc/include/asm/mpc85xx.h
@@ -0,0 +1,47 @@
+/*
+ * MPC85xx cpu type detection
+ *
+ * Copyright 2011-2012 Freescale Semiconductor, Inc.
+ *
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#ifndef __ASM_PPC_MPC85XX_H
+#define __ASM_PPC_MPC85XX_H
+
+#define SVR_REV(svr) ((svr) & 0xFF) /* SOC design resision */
+#define SVR_MAJ(svr) (((svr) >> 4) & 0xF) /* Major revision field*/
+#define SVR_MIN(svr) (((svr) >> 0) & 0xF) /* Minor revision field*/
+
+/* Some parts define SVR[0:23] as the SOC version */
+#define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFF7FF) /* SOC Version fields */
+
+#define SVR_8533 0x803400
+#define SVR_8535 0x803701
+#define SVR_8536 0x803700
+#define SVR_8540 0x803000
+#define SVR_8541 0x807200
+#define SVR_8543 0x803200
+#define SVR_8544 0x803401
+#define SVR_8545 0x803102
+#define SVR_8547 0x803101
+#define SVR_8548 0x803100
+#define SVR_8555 0x807100
+#define SVR_8560 0x807000
+#define SVR_8567 0x807501
+#define SVR_8568 0x807500
+#define SVR_8569 0x808000
+#define SVR_8572 0x80E000
+#define SVR_P1010 0x80f900
+#define SVR_P2041 0x821001
+#define SVR_P3041 0x821103
+#define SVR_P5010 0x822100
+#define SVR_P5020 0x822000
+#define SVR_P5040 0x820400
+#define SVR_T4240 0x824800
+#define SVR_B4860 0x868800
+
+#endif
--
1.8.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* RE: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection
2013-07-11 0:23 ` Haijun Zhang
@ 2013-07-16 8:46 ` Zhang Haijun-B42677
-1 siblings, 0 replies; 10+ messages in thread
From: Zhang Haijun-B42677 @ 2013-07-16 8:46 UTC (permalink / raw)
To: Zhang Haijun-B42677, linux-mmc, linuxppc-dev
Cc: cbouatmailru, cjb, Wood Scott-B07421, Fleming Andy-AFLEMING,
Wrobel Heinz-R39252, Zhao Chenhui-B35336
Hi, scott
Need I change something?
I have some patches depend on this.
Expect your advice.
Thanks.
Regards
Haijun.
> -----Original Message-----
> From: Zhang Haijun-B42677
> Sent: Thursday, July 11, 2013 8:24 AM
> To: linux-mmc@vger.kernel.org; linuxppc-dev@lists.ozlabs.org
> Cc: cbouatmailru@gmail.com; cjb@laptop.org; Wood Scott-B07421; Fleming
> Andy-AFLEMING; Wrobel Heinz-R39252; Zhang Haijun-B42677; Zhao Chenhui-
> B35336
> Subject: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection
>
> Add this file to help detect cpu type in runtime.
> These macros will be more favorable for driver to apply errata and
> workaround to specified cpu type.
>
> Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
> Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
> ---
> changes for v3:
> - remove get_svr and is_svr_rev
>
> arch/powerpc/include/asm/mpc85xx.h | 47
> ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 47 insertions(+)
> create mode 100644 arch/powerpc/include/asm/mpc85xx.h
>
> diff --git a/arch/powerpc/include/asm/mpc85xx.h
> b/arch/powerpc/include/asm/mpc85xx.h
> new file mode 100644
> index 0000000..824b619
> --- /dev/null
> +++ b/arch/powerpc/include/asm/mpc85xx.h
> @@ -0,0 +1,47 @@
> +/*
> + * MPC85xx cpu type detection
> + *
> + * Copyright 2011-2012 Freescale Semiconductor, Inc.
> + *
> + * This is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + */
> +
> +#ifndef __ASM_PPC_MPC85XX_H
> +#define __ASM_PPC_MPC85XX_H
> +
> +#define SVR_REV(svr) ((svr) & 0xFF) /* SOC design resision */
> +#define SVR_MAJ(svr) (((svr) >> 4) & 0xF) /* Major revision field*/
> +#define SVR_MIN(svr) (((svr) >> 0) & 0xF) /* Minor revision field*/
> +
> +/* Some parts define SVR[0:23] as the SOC version */
> +#define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFF7FF) /* SOC Version
> fields */
> +
> +#define SVR_8533 0x803400
> +#define SVR_8535 0x803701
> +#define SVR_8536 0x803700
> +#define SVR_8540 0x803000
> +#define SVR_8541 0x807200
> +#define SVR_8543 0x803200
> +#define SVR_8544 0x803401
> +#define SVR_8545 0x803102
> +#define SVR_8547 0x803101
> +#define SVR_8548 0x803100
> +#define SVR_8555 0x807100
> +#define SVR_8560 0x807000
> +#define SVR_8567 0x807501
> +#define SVR_8568 0x807500
> +#define SVR_8569 0x808000
> +#define SVR_8572 0x80E000
> +#define SVR_P1010 0x80f900
> +#define SVR_P2041 0x821001
> +#define SVR_P3041 0x821103
> +#define SVR_P5010 0x822100
> +#define SVR_P5020 0x822000
> +#define SVR_P5040 0x820400
> +#define SVR_T4240 0x824800
> +#define SVR_B4860 0x868800
> +
> +#endif
> --
> 1.8.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection
@ 2013-07-16 8:46 ` Zhang Haijun-B42677
0 siblings, 0 replies; 10+ messages in thread
From: Zhang Haijun-B42677 @ 2013-07-16 8:46 UTC (permalink / raw)
To: Zhang Haijun-B42677, linux-mmc, linuxppc-dev
Cc: Wood Scott-B07421, Zhao Chenhui-B35336, Wrobel Heinz-R39252,
Fleming Andy-AFLEMING, cbouatmailru, cjb
Hi, scott
Need I change something?
I have some patches depend on this.
Expect your advice.
Thanks.
Regards
Haijun.
> -----Original Message-----
> From: Zhang Haijun-B42677
> Sent: Thursday, July 11, 2013 8:24 AM
> To: linux-mmc@vger.kernel.org; linuxppc-dev@lists.ozlabs.org
> Cc: cbouatmailru@gmail.com; cjb@laptop.org; Wood Scott-B07421; Fleming
> Andy-AFLEMING; Wrobel Heinz-R39252; Zhang Haijun-B42677; Zhao Chenhui-
> B35336
> Subject: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection
>=20
> Add this file to help detect cpu type in runtime.
> These macros will be more favorable for driver to apply errata and
> workaround to specified cpu type.
>=20
> Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
> Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
> ---
> changes for v3:
> - remove get_svr and is_svr_rev
>=20
> arch/powerpc/include/asm/mpc85xx.h | 47
> ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 47 insertions(+)
> create mode 100644 arch/powerpc/include/asm/mpc85xx.h
>=20
> diff --git a/arch/powerpc/include/asm/mpc85xx.h
> b/arch/powerpc/include/asm/mpc85xx.h
> new file mode 100644
> index 0000000..824b619
> --- /dev/null
> +++ b/arch/powerpc/include/asm/mpc85xx.h
> @@ -0,0 +1,47 @@
> +/*
> + * MPC85xx cpu type detection
> + *
> + * Copyright 2011-2012 Freescale Semiconductor, Inc.
> + *
> + * This is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + */
> +
> +#ifndef __ASM_PPC_MPC85XX_H
> +#define __ASM_PPC_MPC85XX_H
> +
> +#define SVR_REV(svr) ((svr) & 0xFF) /* SOC design resision */
> +#define SVR_MAJ(svr) (((svr) >> 4) & 0xF) /* Major revision field*/
> +#define SVR_MIN(svr) (((svr) >> 0) & 0xF) /* Minor revision field*/
> +
> +/* Some parts define SVR[0:23] as the SOC version */
> +#define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFF7FF) /* SOC Version
> fields */
> +
> +#define SVR_8533 0x803400
> +#define SVR_8535 0x803701
> +#define SVR_8536 0x803700
> +#define SVR_8540 0x803000
> +#define SVR_8541 0x807200
> +#define SVR_8543 0x803200
> +#define SVR_8544 0x803401
> +#define SVR_8545 0x803102
> +#define SVR_8547 0x803101
> +#define SVR_8548 0x803100
> +#define SVR_8555 0x807100
> +#define SVR_8560 0x807000
> +#define SVR_8567 0x807501
> +#define SVR_8568 0x807500
> +#define SVR_8569 0x808000
> +#define SVR_8572 0x80E000
> +#define SVR_P1010 0x80f900
> +#define SVR_P2041 0x821001
> +#define SVR_P3041 0x821103
> +#define SVR_P5010 0x822100
> +#define SVR_P5020 0x822000
> +#define SVR_P5040 0x820400
> +#define SVR_T4240 0x824800
> +#define SVR_B4860 0x868800
> +
> +#endif
> --
> 1.8.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection
2013-07-16 8:46 ` Zhang Haijun-B42677
@ 2013-07-16 17:02 ` Scott Wood
-1 siblings, 0 replies; 10+ messages in thread
From: Scott Wood @ 2013-07-16 17:02 UTC (permalink / raw)
Cc: Zhang Haijun-B42677, linux-mmc, linuxppc-dev, cbouatmailru, cjb,
Wood Scott-B07421, Fleming Andy-AFLEMING, Wrobel Heinz-R39252,
Zhao Chenhui-B35336
On 07/16/2013 03:46:44 AM, Zhang Haijun-B42677 wrote:
> Hi, scott
>
> Need I change something?
> I have some patches depend on this.
> Expect your advice.
>
> Thanks.
>
> Regards
> Haijun.
It looks OK; go ahead and send the patches that depend on it.
-Scott
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection
@ 2013-07-16 17:02 ` Scott Wood
0 siblings, 0 replies; 10+ messages in thread
From: Scott Wood @ 2013-07-16 17:02 UTC (permalink / raw)
To: Zhang Haijun-B42677
Cc: Wood Scott-B07421, Zhao Chenhui-B35336, linux-mmc,
Zhang Haijun-B42677, Wrobel Heinz-R39252, Fleming Andy-AFLEMING,
cbouatmailru, cjb, linuxppc-dev
On 07/16/2013 03:46:44 AM, Zhang Haijun-B42677 wrote:
> Hi, scott
>=20
> Need I change something?
> I have some patches depend on this.
> Expect your advice.
>=20
> Thanks.
>=20
> Regards
> Haijun.
It looks OK; go ahead and send the patches that depend on it.
-Scott=
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection
2013-07-16 17:02 ` Scott Wood
@ 2013-07-16 23:54 ` Scott Wood
-1 siblings, 0 replies; 10+ messages in thread
From: Scott Wood @ 2013-07-16 23:54 UTC (permalink / raw)
To: Scott Wood
Cc: Zhang Haijun-B42677, linux-mmc, linuxppc-dev, cbouatmailru, cjb,
Wood Scott-B07421, Fleming Andy-AFLEMING, Wrobel Heinz-R39252,
Zhao Chenhui-B35336
On 07/16/2013 12:02:09 PM, Scott Wood wrote:
> On 07/16/2013 03:46:44 AM, Zhang Haijun-B42677 wrote:
>> Hi, scott
>>
>> Need I change something?
>> I have some patches depend on this.
>> Expect your advice.
>>
>> Thanks.
>>
>> Regards
>> Haijun.
>
> It looks OK; go ahead and send the patches that depend on it.
Actually, could you add p2040, p4040, p4080, p5021, and any other
missing ones you notice (lots of e500v2 P1/P2 chips are missing too)?
At the very least p2040 and p5021 ought to be there if you're using
this to check for p2041/p5040 errata, since they're basically the same
chip and thus have the same errata.
-Scott
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection
@ 2013-07-16 23:54 ` Scott Wood
0 siblings, 0 replies; 10+ messages in thread
From: Scott Wood @ 2013-07-16 23:54 UTC (permalink / raw)
To: Scott Wood
Cc: Wood Scott-B07421, Zhao Chenhui-B35336, linux-mmc,
Zhang Haijun-B42677, Wrobel Heinz-R39252, Fleming Andy-AFLEMING,
cbouatmailru, cjb, linuxppc-dev
On 07/16/2013 12:02:09 PM, Scott Wood wrote:
> On 07/16/2013 03:46:44 AM, Zhang Haijun-B42677 wrote:
>> Hi, scott
>>=20
>> Need I change something?
>> I have some patches depend on this.
>> Expect your advice.
>>=20
>> Thanks.
>>=20
>> Regards
>> Haijun.
>=20
> It looks OK; go ahead and send the patches that depend on it.
Actually, could you add p2040, p4040, p4080, p5021, and any other =20
missing ones you notice (lots of e500v2 P1/P2 chips are missing too)?
At the very least p2040 and p5021 ought to be there if you're using =20
this to check for p2041/p5040 errata, since they're basically the same =20
chip and thus have the same errata.
-Scott=
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection
2013-07-16 23:54 ` Scott Wood
@ 2013-07-17 2:34 ` Zhang Haijun-B42677
-1 siblings, 0 replies; 10+ messages in thread
From: Zhang Haijun-B42677 @ 2013-07-17 2:34 UTC (permalink / raw)
To: Wood Scott-B07421
Cc: linux-mmc, linuxppc-dev, cbouatmailru, cjb,
Fleming Andy-AFLEMING, Wrobel Heinz-R39252, Zhao Chenhui-B35336
Of course.
I'll send patch v4 to add the rest of them.
Thanks.
Regards
Haijun.
> -----Original Message-----
> From: Wood Scott-B07421
> Sent: Wednesday, July 17, 2013 7:54 AM
> To: Wood Scott-B07421
> Cc: Zhang Haijun-B42677; linux-mmc@vger.kernel.org; linuxppc-
> dev@lists.ozlabs.org; cbouatmailru@gmail.com; cjb@laptop.org; Wood Scott-
> B07421; Fleming Andy-AFLEMING; Wrobel Heinz-R39252; Zhao Chenhui-B35336
> Subject: Re: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type
> detection
>
> On 07/16/2013 12:02:09 PM, Scott Wood wrote:
> > On 07/16/2013 03:46:44 AM, Zhang Haijun-B42677 wrote:
> >> Hi, scott
> >>
> >> Need I change something?
> >> I have some patches depend on this.
> >> Expect your advice.
> >>
> >> Thanks.
> >>
> >> Regards
> >> Haijun.
> >
> > It looks OK; go ahead and send the patches that depend on it.
>
> Actually, could you add p2040, p4040, p4080, p5021, and any other missing
> ones you notice (lots of e500v2 P1/P2 chips are missing too)?
>
> At the very least p2040 and p5021 ought to be there if you're using this
> to check for p2041/p5040 errata, since they're basically the same chip
> and thus have the same errata.
>
> -Scott
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection
@ 2013-07-17 2:34 ` Zhang Haijun-B42677
0 siblings, 0 replies; 10+ messages in thread
From: Zhang Haijun-B42677 @ 2013-07-17 2:34 UTC (permalink / raw)
To: Wood Scott-B07421
Cc: Zhao Chenhui-B35336, linux-mmc, Wrobel Heinz-R39252,
Fleming Andy-AFLEMING, cbouatmailru, cjb, linuxppc-dev
Of course.
I'll send patch v4 to add the rest of them.
Thanks.
Regards
Haijun.
> -----Original Message-----
> From: Wood Scott-B07421
> Sent: Wednesday, July 17, 2013 7:54 AM
> To: Wood Scott-B07421
> Cc: Zhang Haijun-B42677; linux-mmc@vger.kernel.org; linuxppc-
> dev@lists.ozlabs.org; cbouatmailru@gmail.com; cjb@laptop.org; Wood Scott-
> B07421; Fleming Andy-AFLEMING; Wrobel Heinz-R39252; Zhao Chenhui-B35336
> Subject: Re: [PATCH V3] powerpc/85xx: Add support for 85xx cpu type
> detection
>=20
> On 07/16/2013 12:02:09 PM, Scott Wood wrote:
> > On 07/16/2013 03:46:44 AM, Zhang Haijun-B42677 wrote:
> >> Hi, scott
> >>
> >> Need I change something?
> >> I have some patches depend on this.
> >> Expect your advice.
> >>
> >> Thanks.
> >>
> >> Regards
> >> Haijun.
> >
> > It looks OK; go ahead and send the patches that depend on it.
>=20
> Actually, could you add p2040, p4040, p4080, p5021, and any other missing
> ones you notice (lots of e500v2 P1/P2 chips are missing too)?
>=20
> At the very least p2040 and p5021 ought to be there if you're using this
> to check for p2041/p5040 errata, since they're basically the same chip
> and thus have the same errata.
>=20
> -Scott
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-07-17 2:34 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-11 0:23 [PATCH V3] powerpc/85xx: Add support for 85xx cpu type detection Haijun Zhang
2013-07-11 0:23 ` Haijun Zhang
2013-07-16 8:46 ` Zhang Haijun-B42677
2013-07-16 8:46 ` Zhang Haijun-B42677
2013-07-16 17:02 ` Scott Wood
2013-07-16 17:02 ` Scott Wood
2013-07-16 23:54 ` Scott Wood
2013-07-16 23:54 ` Scott Wood
2013-07-17 2:34 ` Zhang Haijun-B42677
2013-07-17 2:34 ` Zhang Haijun-B42677
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.