diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-12-15 23:45:45 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2015-12-15 23:45:45 +0100 |
commit | 8864eaca909d03caa220534640a7c92e4d06c96d (patch) | |
tree | 75904540dfb565748f5135ee273143f731f40e40 /arch/arm/include | |
parent | fb4f0424293a0fb75d0c9edbc16bd618930ff2da (diff) | |
parent | 84f45ee9d7f08cc0c0f9276573e1bdf53ccdd58b (diff) | |
download | lwn-8864eaca909d03caa220534640a7c92e4d06c96d.tar.gz lwn-8864eaca909d03caa220534640a7c92e4d06c96d.zip |
Merge branch 'mmp/multiplatform' into next/multiplatform
* mmp/multiplatform:
ARM: mmp: avoid unused functions
ARM: mmp: move into ARCH_MULTIPLATFORM
ARM: mmp: make all header files local
ARM: mmp: make plat-pxa build standalone
ARM: mmp: remove remaining legacy pxa-dma support
ARM: mohawk: allow building with MMU disabled
ARM: make xscale iwmmxt code multiplatform aware
clk: mmp: stop using platform headers
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/cputype.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/arch/arm/include/asm/cputype.h b/arch/arm/include/asm/cputype.h index 85e374f873ac..b23c6c81c9ad 100644 --- a/arch/arm/include/asm/cputype.h +++ b/arch/arm/include/asm/cputype.h @@ -228,10 +228,26 @@ static inline int cpu_is_xsc3(void) } #endif -#if !defined(CONFIG_CPU_XSCALE) && !defined(CONFIG_CPU_XSC3) -#define cpu_is_xscale() 0 +#if !defined(CONFIG_CPU_XSCALE) && !defined(CONFIG_CPU_XSC3) && \ + !defined(CONFIG_CPU_MOHAWK) +#define cpu_is_xscale_family() 0 #else -#define cpu_is_xscale() 1 +static inline int cpu_is_xscale_family(void) +{ + unsigned int id; + id = read_cpuid_id() & 0xffffe000; + + switch (id) { + case 0x69052000: /* Intel XScale 1 */ + case 0x69054000: /* Intel XScale 2 */ + case 0x69056000: /* Intel XScale 3 */ + case 0x56056000: /* Marvell XScale 3 */ + case 0x56158000: /* Marvell Mohawk */ + return 1; + } + + return 0; +} #endif /* |