summaryrefslogtreecommitdiffstats
path: root/include/asm-blackfin
diff options
context:
space:
mode:
authorJie Zhang2007-06-25 12:04:12 +0200
committerBryan Wu2007-06-25 12:04:12 +0200
commitde3025f4e2bc063c274f561f9daf2b696910ad3b (patch)
tree25119db476c843a13d1d26ae2c80af9df6096713 /include/asm-blackfin
parentLinux 2.6.22-rc7 (diff)
downloadkernel-qcow2-linux-de3025f4e2bc063c274f561f9daf2b696910ad3b.tar.gz
kernel-qcow2-linux-de3025f4e2bc063c274f561f9daf2b696910ad3b.tar.xz
kernel-qcow2-linux-de3025f4e2bc063c274f561f9daf2b696910ad3b.zip
Blackfin arch: Add proper -mcpu option according to the cpu and silicon revision configuration
Add silicon revision "any" and "none". Add proper -mcpu option according to the cpu and silicon revision configuration. Need update to use latest Blackfin cross compile toolchain. Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Mike Frysinger <michael.frysinger@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'include/asm-blackfin')
-rw-r--r--include/asm-blackfin/processor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-blackfin/processor.h b/include/asm-blackfin/processor.h
index aba2b30a8ed8..6bb3e0d4705d 100644
--- a/include/asm-blackfin/processor.h
+++ b/include/asm-blackfin/processor.h
@@ -124,6 +124,10 @@ static inline __attribute_pure__ uint32_t bfin_compiled_revid(void)
return 4;
#elif defined(CONFIG_BF_REV_0_5)
return 5;
+#elif defined(CONFIG_BF_REV_ANY)
+ return 0xffff;
+#else
+ return -1;
#endif
}