aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-pxa/hardware.h
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-07-11 00:45:39 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-07-13 07:05:21 -0400
commit5d31e43589589e63f5b96abc62372d2ef331c14a (patch)
treeafa74e806f3109892188297fdda3a32132381b15 /include/asm-arm/arch-pxa/hardware.h
parent9d9f6d27333b97d590b5409017d105205f79a28e (diff)
[ARM] pxa: add base support for PXA930 (aka Tavor-P)
Signed-off-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-pxa/hardware.h')
-rw-r--r--include/asm-arm/arch-pxa/hardware.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/asm-arm/arch-pxa/hardware.h b/include/asm-arm/arch-pxa/hardware.h
index 09868de841a5..979a45695d7d 100644
--- a/include/asm-arm/arch-pxa/hardware.h
+++ b/include/asm-arm/arch-pxa/hardware.h
@@ -126,6 +126,16 @@
126#define __cpu_is_pxa320(id) (0) 126#define __cpu_is_pxa320(id) (0)
127#endif 127#endif
128 128
129#ifdef CONFIG_CPU_PXA930
130#define __cpu_is_pxa930(id) \
131 ({ \
132 unsigned int _id = (id) >> 4 & 0xfff; \
133 _id == 0x683; \
134 })
135#else
136#define __cpu_is_pxa930(id) (0)
137#endif
138
129#define cpu_is_pxa21x() \ 139#define cpu_is_pxa21x() \
130 ({ \ 140 ({ \
131 __cpu_is_pxa21x(read_cpuid_id()); \ 141 __cpu_is_pxa21x(read_cpuid_id()); \
@@ -161,6 +171,12 @@
161 __cpu_is_pxa320(read_cpuid_id()); \ 171 __cpu_is_pxa320(read_cpuid_id()); \
162 }) 172 })
163 173
174#define cpu_is_pxa930() \
175 ({ \
176 unsigned int id = read_cpuid(CPUID_ID); \
177 __cpu_is_pxa930(id); \
178 })
179
164/* 180/*
165 * CPUID Core Generation Bit 181 * CPUID Core Generation Bit
166 * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x 182 * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x