git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branches 'sh/serial-rework' and 'sh/oprofile'
[pandora-kernel.git]
/
arch
/
blackfin
/
include
/
asm
/
processor.h
diff --git
a/arch/blackfin/include/asm/processor.h
b/arch/blackfin/include/asm/processor.h
index
6f3995b
..
e3e9b41
100644
(file)
--- a/
arch/blackfin/include/asm/processor.h
+++ b/
arch/blackfin/include/asm/processor.h
@@
-134,6
+134,12
@@
static inline uint32_t __pure bfin_revid(void)
return revid;
}
+static inline uint16_t __pure bfin_cpuid(void)
+{
+ return (bfin_read_CHIPID() & CHIPID_FAMILY) >> 12;
+
+}
+
static inline uint32_t __pure bfin_compiled_revid(void)
{
#if defined(CONFIG_BF_REV_0_0)