1 Index: include/asm-blackfin/processor.h
2 ===================================================================
3 --- include/asm-blackfin/processor.h (revision 1283)
4 +++ include/asm-blackfin/processor.h (working copy)
6 #ifndef __ASM_BLACKFIN_PROCESSOR_H
7 #define __ASM_BLACKFIN_PROCESSOR_H
9 -/* Stub to make stupid common code happy */
10 +#include <linux/types.h>
12 +/* Get the Silicon Revision of the chip */
13 +static inline uint32_t __pure bfin_revid(void)
15 + /* stored in the upper 4 bits */
16 + uint32_t revid = bfin_read_CHIPID() >> 28;
20 + * Incorrect Revision Number in DSPID Register
23 + switch (bfin_read16(_BOOTROM_GET_DXE_ADDRESS_TWI)) {
38 +static inline uint32_t __pure bfin_compiled_revid(void)
40 + return __SILICON_REVISION__;
44 Index: include/asm-blackfin/blackfin_local.h
45 ===================================================================
46 --- include/asm-blackfin/blackfin_local.h (revision 1283)
47 +++ include/asm-blackfin/blackfin_local.h (working copy)
50 extern u_long get_sclk(void);
52 -# define bfin_revid() (*pCHIPID >> 28)
54 extern void blackfin_icache_flush_range(const void *, const void *);
55 extern void blackfin_dcache_flush_range(const void *, const void *);
56 extern void blackfin_dcache_invalidate_range(const void *, const void *);