summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/include/mach/hardware.h
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-09-11 10:43:02 +0800
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-09-25 09:54:56 +0100
commitda1a3dc0ebb4f9209a1939eaa6b18901e0cd7bc0 (patch)
tree38fac4d68fa639b7c71a0340a14d23883879bc23 /arch/arm/mach-pxa/include/mach/hardware.h
parent0ffcbfd54ea81ca24c0749f55ca4fcf3e2bdc23e (diff)
downloadlinux-da1a3dc0ebb4f9209a1939eaa6b18901e0cd7bc0.tar.gz
linux-da1a3dc0ebb4f9209a1939eaa6b18901e0cd7bc0.tar.bz2
linux-da1a3dc0ebb4f9209a1939eaa6b18901e0cd7bc0.zip
[ARM] pxa: introduce cpu_is_pxa26x()
PXA26x (PXA261/262) is actually a PXA250 with stacked Intel(R) StartaFlash. And this can be decided by bit 3 (PKG_TYPE) of BOOT_DEF register. Due to this extra I/O register access, make cpu_is_pxa26x() a public function instead of a macro. Signed-off-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/include/mach/hardware.h')
-rw-r--r--arch/arm/mach-pxa/include/mach/hardware.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/include/mach/hardware.h b/arch/arm/mach-pxa/include/mach/hardware.h
index c9ee4081d533..9dc71114e287 100644
--- a/arch/arm/mach-pxa/include/mach/hardware.h
+++ b/arch/arm/mach-pxa/include/mach/hardware.h
@@ -202,6 +202,8 @@
__cpu_is_pxa25x(read_cpuid_id()); \
})
+extern int cpu_is_pxa26x(void);
+
#define cpu_is_pxa27x() \
({ \
__cpu_is_pxa27x(read_cpuid_id()); \