From 97b1b79ccc84f5fc3fc966893da04558edccb452 Mon Sep 17 00:00:00 2001 From: Bryan Wu Date: Fri, 15 Jan 2010 11:42:18 +0000 Subject: [PATCH] UBUNTU: SAUCE: IMX51: only export NEON flag to userspace on Freescale iMX51 rev3.x or later silicon BugLink: http://bugs.launchpad.net/bugs/507416 Signed-off-by: Bryan Wu --- arch/arm/vfp/vfpmodule.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c index 2d7423a..e0d6b01 100644 --- a/arch/arm/vfp/vfpmodule.c +++ b/arch/arm/vfp/vfpmodule.c @@ -432,6 +432,10 @@ out: #include +#if defined(CONFIG_ARCH_MX51) && defined(CONFIG_NEON) +#include +#endif + /* * VFP support code initialisation. */ @@ -498,7 +502,8 @@ static int __init vfp_init(void) * load/store instructions, integer and single * precision floating point operations. */ - if ((fmrx(MVFR1) & 0x000fff00) == 0x00011100) + if (((fmrx(MVFR1) & 0x000fff00) == 0x00011100) + && cpu_is_mx51_rev(CHIP_REV_3_0) > 0) elf_hwcap |= HWCAP_NEON; #endif } -- 1.6.3.3