summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/blackfin/Kconfig10
-rw-r--r--arch/blackfin/configs/ipe337_defconfig1
-rw-r--r--include/configs/ipe337.h9
3 files changed, 20 insertions, 0 deletions
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig
index 7c4fd9fb2c..76913f381b 100644
--- a/arch/blackfin/Kconfig
+++ b/arch/blackfin/Kconfig
@@ -27,6 +27,16 @@ config MACH_IPE337
endchoice
+menu "Select your board options"
+
+config MACH_IPE337_V2
+ bool "PII ipe337 revision 2 (40MHz)" if MACH_IPE337
+ default y
+ help
+ Say Y here if you are using the second revision of the PII IPE337 board (running at 40Mhz)
+
+endmenu
+
choice
prompt "Boot Mode"
default BFIN_BOOT_BYPASS
diff --git a/arch/blackfin/configs/ipe337_defconfig b/arch/blackfin/configs/ipe337_defconfig
index 4c273aaf32..36075ca401 100644
--- a/arch/blackfin/configs/ipe337_defconfig
+++ b/arch/blackfin/configs/ipe337_defconfig
@@ -8,6 +8,7 @@ CONFIG_BF561=y
CONFIG_BOARDINFO="PII IPE337"
CONFIG_ARCH_TEXT_BASE=0x00000000
CONFIG_MACH_IPE337=y
+CONFIG_MACH_IPE337_V2=y
CONFIG_GREGORIAN_CALENDER=y
CONFIG_HAS_KALLSYMS=y
CONFIG_HAS_MODULES=y
diff --git a/include/configs/ipe337.h b/include/configs/ipe337.h
index 9ff6297e6b..2b9376ade1 100644
--- a/include/configs/ipe337.h
+++ b/include/configs/ipe337.h
@@ -1,4 +1,7 @@
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
/*
* Board Layout
*/
@@ -11,7 +14,12 @@
*/
/* CONFIG_CLKIN_HZ is any value in Hz */
+#ifdef CONFIG_MACH_IPE337_V2
#define CONFIG_CLKIN_HZ 40000000
+#else
+#define CONFIG_CLKIN_HZ 25000000
+#endif
+
/* CONFIG_CLKIN_HALF controls what is passed to PLL 0=CLKIN */
/* 1=CLKIN/2 */
#define CONFIG_CLKIN_HALF 0
@@ -40,3 +48,4 @@
#define CONFIG_MEM_ADD_WDTH 9 /* 8, 9, 10, 11 */
#define CONFIG_MEM_SIZE 64 /* 128, 64, 32, 16 */
+#endif /* __CONFIG_H */