blackfin arch fix bug bf561 rev ID are 8-bit
PATCH 1/1 blackfin arch fix bug bf561 rev ID are 8-bit
Signed-off-by Bryan Wu <[email protected]>
--- arch/blackfin/kernel/setup.c | 3 +++ include/asm-blackfin/mach-bf561/bf561.h | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-)
arch/blackfin/kernel/setup.c +3 -0
@@ -117,6 +117,9 @@ static u_int get_dsp_rev_id(void) {u_int id; id =bfin_read_DSPID () &0xffff ; +#if defined(CONFIG_BF561 ) + id>>=8 ; +#endif return id; }
include/asm-blackfin/mach-bf561/bf561.h +1 -1
@@ -30,7 +30,7 @@#ifndef __MACH_BF561_H__#define __MACH_BF561_H__ -#define SUPPORTED_DSPID 0x300 +#define SUPPORTED_DSPID 0x3#define OFFSET_ (x) ((x) & 0x0000FFFF)#define L1_ISRAM 0xFFA00000
Signature · 1 line
1.5.0.5