9
0
Fork 0

Make board IPE337 revision 2 selectable for .config

A new menu "Board options" is introduced, where one can select if the board
is a rev.2 (= 40Mhz)

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
This commit is contained in:
Wolfram Sang 2008-01-23 20:44:32 +01:00
parent 35fd1e8f5b
commit a119fc273b
3 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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 */