Diff
Modified: trunk/arch/blackfin/Kconfig (5327 => 5328)
--- trunk/arch/blackfin/Kconfig 2008-09-22 22:30:26 UTC (rev 5327)
+++ trunk/arch/blackfin/Kconfig 2008-09-23 00:12:15 UTC (rev 5328)
@@ -166,6 +166,19 @@
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)
Modified: trunk/arch/blackfin/kernel/setup.c (5327 => 5328)
--- trunk/arch/blackfin/kernel/setup.c 2008-09-22 22:30:26 UTC (rev 5327)
+++ trunk/arch/blackfin/kernel/setup.c 2008-09-23 00:12:15 UTC (rev 5328)
@@ -821,9 +821,10 @@
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",
Modified: trunk/include/asm-blackfin/mach-bf527/bf527.h (5327 => 5328)
--- trunk/include/asm-blackfin/mach-bf527/bf527.h 2008-09-22 22:30:26 UTC (rev 5327)
+++ trunk/include/asm-blackfin/mach-bf527/bf527.h 2008-09-23 00:12:15 UTC (rev 5328)
@@ -30,8 +30,6 @@
#ifndef __MACH_BF527_H__
#define __MACH_BF527_H__
-#define SUPPORTED_REVID 2
-
#define OFFSET_(x) ((x) & 0x0000FFFF)
/*some misc defines*/
Modified: trunk/include/asm-blackfin/mach-bf533/bf533.h (5327 => 5328)
--- trunk/include/asm-blackfin/mach-bf533/bf533.h 2008-09-22 22:30:26 UTC (rev 5327)
+++ trunk/include/asm-blackfin/mach-bf533/bf533.h 2008-09-23 00:12:15 UTC (rev 5328)
@@ -30,8 +30,6 @@
#ifndef __MACH_BF533_H__
#define __MACH_BF533_H__
-#define SUPPORTED_REVID 2
-
#define OFFSET_(x) ((x) & 0x0000FFFF)
/*some misc defines*/
Modified: trunk/include/asm-blackfin/mach-bf537/bf537.h (5327 => 5328)
--- trunk/include/asm-blackfin/mach-bf537/bf537.h 2008-09-22 22:30:26 UTC (rev 5327)
+++ trunk/include/asm-blackfin/mach-bf537/bf537.h 2008-09-23 00:12:15 UTC (rev 5328)
@@ -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 */
Modified: trunk/include/asm-blackfin/mach-bf548/bf548.h (5327 => 5328)
--- trunk/include/asm-blackfin/mach-bf548/bf548.h 2008-09-22 22:30:26 UTC (rev 5327)
+++ trunk/include/asm-blackfin/mach-bf548/bf548.h 2008-09-23 00:12:15 UTC (rev 5328)
@@ -30,8 +30,6 @@
#ifndef __MACH_BF548_H__
#define __MACH_BF548_H__
-#define SUPPORTED_REVID 0
-
#define OFFSET_(x) ((x) & 0x0000FFFF)
/*some misc defines*/
Modified: trunk/include/asm-blackfin/mach-bf561/bf561.h (5327 => 5328)
--- trunk/include/asm-blackfin/mach-bf561/bf561.h 2008-09-22 22:30:26 UTC (rev 5327)
+++ trunk/include/asm-blackfin/mach-bf561/bf561.h 2008-09-23 00:12:15 UTC (rev 5328)
@@ -30,8 +30,6 @@
#ifndef __MACH_BF561_H__
#define __MACH_BF561_H__
-#define SUPPORTED_REVID 0x3
-
#define OFFSET_(x) ((x) & 0x0000FFFF)
/*some misc defines*/