Skip to content

Commit

Permalink
[ARM] pxa: update cpu_is_xsc3() to include Marvell CPUID
Browse files Browse the repository at this point in the history
CPU id is changed in Marvell chip. So update the code in cpu_is_xsc3().

Signed-off-by: Haojian Zhuang <[email protected]>
Signed-off-by: Eric Miao <[email protected]>
  • Loading branch information
Haojian Zhuang authored and ericmiao committed Sep 10, 2009
1 parent 9db95cb commit 337c1db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/arm/include/asm/cputype.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ static inline unsigned int __attribute_const__ read_cpuid_cachetype(void)
#else
static inline int cpu_is_xsc3(void)
{
if ((read_cpuid_id() & 0xffffe000) == 0x69056000)
unsigned int id;
id = read_cpuid_id() & 0xffffe000;
/* It covers both Intel ID and Marvell ID */
if ((id == 0x69056000) || (id == 0x56056000))
return 1;

return 0;
Expand Down

0 comments on commit 337c1db

Please sign in to comment.