aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-pxa/include/mach/hardware.h2
-rw-r--r--arch/arm/mach-pxa/pxa25x.c8
2 files changed, 9 insertions, 1 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 @@
202 __cpu_is_pxa25x(read_cpuid_id()); \ 202 __cpu_is_pxa25x(read_cpuid_id()); \
203 }) 203 })
204 204
205extern int cpu_is_pxa26x(void);
206
205#define cpu_is_pxa27x() \ 207#define cpu_is_pxa27x() \
206 ({ \ 208 ({ \
207 __cpu_is_pxa27x(read_cpuid_id()); \ 209 __cpu_is_pxa27x(read_cpuid_id()); \
diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c
index a3a6aff5f0d4..3caa74a10d13 100644
--- a/arch/arm/mach-pxa/pxa25x.c
+++ b/arch/arm/mach-pxa/pxa25x.c
@@ -36,6 +36,12 @@
36#include "devices.h" 36#include "devices.h"
37#include "clock.h" 37#include "clock.h"
38 38
39int cpu_is_pxa26x(void)
40{
41 return cpu_is_pxa250() && ((BOOT_DEF & 0x8) == 0);
42}
43EXPORT_SYMBOL_GPL(cpu_is_pxa26x);
44
39/* 45/*
40 * Various clock factors driven by the CCCR register. 46 * Various clock factors driven by the CCCR register.
41 */ 47 */
@@ -372,7 +378,7 @@ static int __init pxa25x_init(void)
372 } 378 }
373 379
374 /* Only add HWUART for PXA255/26x; PXA210/250 do not have it. */ 380 /* Only add HWUART for PXA255/26x; PXA210/250 do not have it. */
375 if (cpu_is_pxa255()) { 381 if (cpu_is_pxa255() || cpu_is_pxa26x()) {
376 clks_register(&pxa25x_hwuart_clk, 1); 382 clks_register(&pxa25x_hwuart_clk, 1);
377 ret = platform_device_register(&pxa_device_hwuart); 383 ret = platform_device_register(&pxa_device_hwuart);
378 } 384 }