Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113772
b: refs/heads/master
c: 0c0497c
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Oct 9, 2008
1 parent 6707e0b commit 4fa3095
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 664d0403f96ff5f4fb43a4b3a54b5642589c57d2
refs/heads/master: 0c0497c257c12c9ecb8825490a339bfce8a0532f
13 changes: 13 additions & 0 deletions trunk/arch/blackfin/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,19 @@ config BF561

endchoice

config BF_REV_MIN
int
default 0 if (BF52x || BF54x)
default 2 if (BF537 || BF536 || BF534)
default 3 if (BF561 ||BF533 || BF532 || BF531)

config BF_REV_MAX
int
default 2 if (BF52x || BF54x)
default 3 if (BF537 || BF536 || BF534)
default 5 if (BF561)
default 6 if (BF533 || BF532 || BF531)

choice
prompt "Silicon Rev"
default BF_REV_0_1 if (BF52x || BF54x)
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,9 +821,10 @@ void __init setup_arch(char **cmdline_p)
printk(KERN_ERR "Warning: Compiled for Rev %d, but running on Rev %d\n",
bfin_compiled_revid(), bfin_revid());
}
if (bfin_revid() < SUPPORTED_REVID)
if (bfin_revid() <= CONFIG_BF_REV_MIN || bfin_revid() > CONFIG_BF_REV_MAX)
printk(KERN_ERR "Warning: Unsupported Chip Revision ADSP-%s Rev 0.%d detected\n",
CPU, bfin_revid());

printk(KERN_INFO "Blackfin Linux support by http://blackfin.uclinux.org/\n");

printk(KERN_INFO "Processor Speed: %lu MHz core clock and %lu MHz System Clock\n",
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/blackfin/mach-bf527/include/mach/bf527.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#ifndef __MACH_BF527_H__
#define __MACH_BF527_H__

#define SUPPORTED_REVID 2

#define OFFSET_(x) ((x) & 0x0000FFFF)

/*some misc defines*/
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/blackfin/mach-bf533/include/mach/bf533.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#ifndef __MACH_BF533_H__
#define __MACH_BF533_H__

#define SUPPORTED_REVID 2

#define OFFSET_(x) ((x) & 0x0000FFFF)

/*some misc defines*/
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/blackfin/mach-bf537/include/mach/bf537.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#ifndef __MACH_BF537_H__
#define __MACH_BF537_H__

#define SUPPORTED_REVID 2

/* Masks for generic ERROR IRQ demultiplexing used in int-priority-sc.c */

#define SPI_ERR_MASK (TXCOL | RBSY | MODF | TXE) /* SPI_STAT */
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/blackfin/mach-bf548/include/mach/bf548.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#ifndef __MACH_BF548_H__
#define __MACH_BF548_H__

#define SUPPORTED_REVID 0

#define OFFSET_(x) ((x) & 0x0000FFFF)

/*some misc defines*/
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/blackfin/mach-bf561/include/mach/bf561.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#ifndef __MACH_BF561_H__
#define __MACH_BF561_H__

#define SUPPORTED_REVID 0x3

#define OFFSET_(x) ((x) & 0x0000FFFF)

/*some misc defines*/
Expand Down

0 comments on commit 4fa3095

Please sign in to comment.