diff options
Diffstat (limited to 'arch/blackfin/include/asm/processor.h')
-rw-r--r-- | arch/blackfin/include/asm/processor.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/processor.h b/arch/blackfin/include/asm/processor.h index 6f3995b119d..e3e9b41fa8d 100644 --- 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) | |||
134 | return revid; | 134 | return revid; |
135 | } | 135 | } |
136 | 136 | ||
137 | static inline uint16_t __pure bfin_cpuid(void) | ||
138 | { | ||
139 | return (bfin_read_CHIPID() & CHIPID_FAMILY) >> 12; | ||
140 | |||
141 | } | ||
142 | |||
137 | static inline uint32_t __pure bfin_compiled_revid(void) | 143 | static inline uint32_t __pure bfin_compiled_revid(void) |
138 | { | 144 | { |
139 | #if defined(CONFIG_BF_REV_0_0) | 145 | #if defined(CONFIG_BF_REV_0_0) |