Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112375
b: refs/heads/master
c: da1a3dc
h: refs/heads/master
i:
  112373: ca2a0a3
  112371: e76d3b6
  112367: d163e2e
v: v3
  • Loading branch information
Eric Miao authored and Russell King committed Sep 25, 2008
1 parent 3e88e13 commit 9835647
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ffcbfd54ea81ca24c0749f55ca4fcf3e2bdc23e
refs/heads/master: da1a3dc0ebb4f9209a1939eaa6b18901e0cd7bc0
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-pxa/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()); \
Expand Down
8 changes: 7 additions & 1 deletion trunk/arch/arm/mach-pxa/pxa25x.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
#include "devices.h"
#include "clock.h"

int cpu_is_pxa26x(void)
{
return cpu_is_pxa250() && ((BOOT_DEF & 0x8) == 0);
}
EXPORT_SYMBOL_GPL(cpu_is_pxa26x);

/*
* Various clock factors driven by the CCCR register.
*/
Expand Down Expand Up @@ -372,7 +378,7 @@ static int __init pxa25x_init(void)
}

/* Only add HWUART for PXA255/26x; PXA210/250 do not have it. */
if (cpu_is_pxa255()) {
if (cpu_is_pxa255() || cpu_is_pxa26x()) {
clks_register(&pxa25x_hwuart_clk, 1);
ret = platform_device_register(&pxa_device_hwuart);
}
Expand Down

0 comments on commit 9835647

Please sign in to comment.