All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/9] ARM: pxa: redefine the cpu_is_pxa3xx
@ 2010-11-17 11:03 Haojian Zhuang
  2010-11-17 11:03 ` [PATCH 2/9] ARM: pxa: redefine irqs.h Haojian Zhuang
  2010-11-18 14:01 ` [PATCH 1/9] ARM: pxa: redefine the cpu_is_pxa3xx Eric Miao
  0 siblings, 2 replies; 27+ messages in thread
From: Haojian Zhuang @ 2010-11-17 11:03 UTC (permalink / raw)
  To: linux-arm-kernel

After introducing pxa930/pxa935 and new silicons, original cpuid rules
of XScale generation 3 can't fit new silicons. Now redefine the rule
of PXA3xx.

Only PXA300/PXA310/PXA320/PXA930/PXA935 are family members of PXA3xx.
PXA930/PXA935 are family members of PXA93x. PXA93x can be considered
as PXA3xx + CP.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
---
 arch/arm/mach-pxa/include/mach/hardware.h |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/arch/arm/mach-pxa/include/mach/hardware.h b/arch/arm/mach-pxa/include/mach/hardware.h
index ca188cd..e480d1e 100644
--- a/arch/arm/mach-pxa/include/mach/hardware.h
+++ b/arch/arm/mach-pxa/include/mach/hardware.h
@@ -264,7 +264,6 @@
 /*
  * CPUID Core Generation Bit
  * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x
- * == 0x3 for pxa300/pxa310/pxa320
  */
 #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x)
 #define __cpu_is_pxa2xx(id)				\
@@ -279,8 +278,10 @@
 #ifdef CONFIG_PXA3xx
 #define __cpu_is_pxa3xx(id)				\
 	({						\
-		unsigned int _id = (id) >> 13 & 0x7;	\
-		_id == 0x3;				\
+		__cpu_is_pxa300(id)			\
+			|| __cpu_is_pxa310(id)		\
+			|| __cpu_is_pxa320(id)		\
+			|| __cpu_is_pxa93x(id);		\
 	 })
 #else
 #define __cpu_is_pxa3xx(id)	(0)
@@ -289,8 +290,8 @@
 #if defined(CONFIG_CPU_PXA930) || defined(CONFIG_CPU_PXA935)
 #define __cpu_is_pxa93x(id)				\
 	({						\
-		unsigned int _id = (id) >> 4 & 0xfff;	\
-		_id == 0x683 || _id == 0x693;		\
+		__cpu_is_pxa930(id)			\
+			|| __cpu_is_pxa935(id);		\
 	 })
 #else
 #define __cpu_is_pxa93x(id)	(0)
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2010-11-23  6:13 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-17 11:03 [PATCH 1/9] ARM: pxa: redefine the cpu_is_pxa3xx Haojian Zhuang
2010-11-17 11:03 ` [PATCH 2/9] ARM: pxa: redefine irqs.h Haojian Zhuang
2010-11-17 11:03   ` [PATCH 3/9] ARM: pxa: support pxa95x Haojian Zhuang
2010-11-17 11:03     ` [PATCH 4/9] ARM: pxa: support saarb platform Haojian Zhuang
2010-11-17 11:03       ` [PATCH 5/9] ARM: mmp: select CPU_PJ4 Haojian Zhuang
2010-11-17 11:03         ` [PATCH 6/9] ARM: pxa: sanitize IRQ registers access based on offset Haojian Zhuang
2010-11-17 11:03           ` [PATCH 7/9] ARM: pxa: auto compute shift and mult of timer Haojian Zhuang
2010-11-17 11:03             ` [PATCH 8/9] ARM: pxa: add 32KHz timer as clock source Haojian Zhuang
2010-11-17 11:03               ` [PATCH 9/9] ARM: pxa: add iwmmx support for PJ4 Haojian Zhuang
2010-11-17 11:09                 ` Haojian Zhuang
2010-11-17 15:55                   ` Nicolas Pitre
2010-11-18  3:09                     ` Haojian Zhuang
2010-11-18 18:27                       ` Nicolas Pitre
2010-11-17 15:29                 ` Nicolas Pitre
2010-11-17 15:23               ` [PATCH 8/9] ARM: pxa: add 32KHz timer as clock source Nicolas Pitre
2010-11-18  3:11                 ` Haojian Zhuang
2010-11-17 13:13         ` [PATCH 5/9] ARM: mmp: select CPU_PJ4 Sergei Shtylyov
2010-11-18  3:12           ` Haojian Zhuang
2010-11-19  8:45     ` [PATCH 3/9] ARM: pxa: support pxa95x Eric Miao
2010-11-19  9:16       ` Haojian Zhuang
2010-11-22  1:08         ` Eric Miao
2010-11-22  4:18           ` Haojian Zhuang
2010-11-22  6:59             ` Eric Miao
2010-11-23  4:11               ` Haojian Zhuang
2010-11-23  6:13                 ` Eric Miao
2010-11-18 14:03   ` [PATCH 2/9] ARM: pxa: redefine irqs.h Eric Miao
2010-11-18 14:01 ` [PATCH 1/9] ARM: pxa: redefine the cpu_is_pxa3xx Eric Miao

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.