diff options
author | Florian Fainelli <florian@openwrt.org> | 2015-04-04 18:01:07 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2015-04-04 18:01:07 +0000 |
commit | d030e21a01634dd74b84b4b1de55fe1a86ad1a15 (patch) | |
tree | a06c2ec374a34c9b7fff6551e596e381eb87e263 /target/linux/mcs814x/files-3.18/arch/arm/mach-mcs814x/include/mach/cpu.h | |
parent | 71f35a88e4666f4f310efb4563ebfce54045636f (diff) | |
download | upstream-d030e21a01634dd74b84b4b1de55fe1a86ad1a15.tar.gz upstream-d030e21a01634dd74b84b4b1de55fe1a86ad1a15.tar.bz2 upstream-d030e21a01634dd74b84b4b1de55fe1a86ad1a15.zip |
mcs814x: add support for 3.18
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45273 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mcs814x/files-3.18/arch/arm/mach-mcs814x/include/mach/cpu.h')
-rw-r--r-- | target/linux/mcs814x/files-3.18/arch/arm/mach-mcs814x/include/mach/cpu.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/mcs814x/files-3.18/arch/arm/mach-mcs814x/include/mach/cpu.h b/target/linux/mcs814x/files-3.18/arch/arm/mach-mcs814x/include/mach/cpu.h new file mode 100644 index 0000000000..1ef3c4a036 --- /dev/null +++ b/target/linux/mcs814x/files-3.18/arch/arm/mach-mcs814x/include/mach/cpu.h @@ -0,0 +1,16 @@ +#ifndef __ASM_ARCH_CPU_H__ +#define __ASM_ARCH_CPU_H__ + +#include <asm/cputype.h> + +#define MCS8140_ID 0x41069260 /* ARM926EJ-S */ +#define MCS814X_MASK 0xff0ffff0 + +#ifdef CONFIG_MCS8140 +/* Moschip MCS8140 is based on an ARM926EJ-S core */ +#define soc_is_mcs8140() ((read_cpuid_id() & MCS814X_MASK) == MCS8140_ID) +#else +#define soc_is_mcs8140() (0) +#endif /* !CONFIG_MCS8140 */ + +#endif /* __ASM_ARCH_CPU_H__ */ |