[IPE337] Better support for multiple revision
Changed bool into choice Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
This commit is contained in:
parent
a119fc273b
commit
e18ff815e3
|
@ -27,19 +27,26 @@ config MACH_IPE337
|
|||
|
||||
endchoice
|
||||
|
||||
menu "Select your board options"
|
||||
choice
|
||||
prompt "Select your board options"
|
||||
depends on MACH_IPE337
|
||||
default MACH_IPE337_V2
|
||||
|
||||
config MACH_IPE337_V1
|
||||
bool "revision 1 (25MHz)"
|
||||
help
|
||||
Say Y here if you are using the first revision of the PII IPE337 board (Crystal running at 25Mhz)
|
||||
|
||||
config MACH_IPE337_V2
|
||||
bool "PII ipe337 revision 2 (40MHz)" if MACH_IPE337
|
||||
default y
|
||||
bool "revision 2 (40MHz)"
|
||||
help
|
||||
Say Y here if you are using the second revision of the PII IPE337 board (running at 40Mhz)
|
||||
Say Y here if you are using the second revision of the PII IPE337 board (Crystal running at 40Mhz)
|
||||
|
||||
endmenu
|
||||
endchoice
|
||||
|
||||
choice
|
||||
prompt "Boot Mode"
|
||||
default BFIN_BOOT_BYPASS
|
||||
default BFIN_BOOT_FLASH16
|
||||
|
||||
config BFIN_BOOT_BYPASS
|
||||
bool "bypass"
|
||||
|
|
|
@ -14,10 +14,12 @@
|
|||
*/
|
||||
|
||||
/* CONFIG_CLKIN_HZ is any value in Hz */
|
||||
#ifdef CONFIG_MACH_IPE337_V2
|
||||
#if defined(CONFIG_MACH_IPE337_V1)
|
||||
#define CONFIG_CLKIN_HZ 25000000
|
||||
#elif defined(CONFIG_MACH_IPE337_V2)
|
||||
#define CONFIG_CLKIN_HZ 40000000
|
||||
#else
|
||||
#define CONFIG_CLKIN_HZ 25000000
|
||||
#error "Unknown IPE337 revision"
|
||||
#endif
|
||||
|
||||
/* CONFIG_CLKIN_HALF controls what is passed to PLL 0=CLKIN */
|
||||
|
|
Loading…
Reference in New Issue