aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2007-06-25 18:04:12 +0800
committerBryan Wu <bryan.wu@analog.com>2007-06-25 18:04:12 +0800
commitde3025f4e2bc063c274f561f9daf2b696910ad3b (patch)
tree25119db476c843a13d1d26ae2c80af9df6096713 /include
parenta38d6181ff27824c79fc7df825164a212eff6a3f (diff)
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')
-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 aba2b30a8ed..6bb3e0d4705 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
}