summaryrefslogtreecommitdiffstats
path: root/arch/arm/vfp
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2008-11-06 14:23:07 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2008-11-06 14:23:07 +0100
commit2bedbdf4148ebbe48c7a89449ab52e475a788f42 (patch)
tree8824fd9f1a87257187972d9395c561e2682d53bf /arch/arm/vfp
parentAdd "thumbee" to the hwcap_str array (diff)
downloadlinux-2bedbdf4148ebbe48c7a89449ab52e475a788f42.tar.xz
linux-2bedbdf4148ebbe48c7a89449ab52e475a788f42.zip
Add HWCAP_NEON to the ARM hwcap.h file
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/vfp')
-rw-r--r--arch/arm/vfp/vfpmodule.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c
index c0d2c9bb952b..67ca340a7c85 100644
--- a/arch/arm/vfp/vfpmodule.c
+++ b/arch/arm/vfp/vfpmodule.c
@@ -371,6 +371,15 @@ static int __init vfp_init(void)
* in place; report VFP support to userspace.
*/
elf_hwcap |= HWCAP_VFP;
+#ifdef CONFIG_NEON
+ /*
+ * Check for the presence of the Advanced SIMD
+ * load/store instructions, integer and single
+ * precision floating point operations.
+ */
+ if ((fmrx(MVFR1) & 0x000fff00) == 0x00011100)
+ elf_hwcap |= HWCAP_NEON;
+#endif
}
return 0;
}