summaryrefslogtreecommitdiffstats
path: root/include/configs/ipe337.h
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2008-01-23 20:44:32 +0100
committerWolfram Sang <w.sang@pengutronix.de>2008-01-23 20:44:32 +0100
commita119fc273b8e7712bff086494a9dbc05764097a5 (patch)
tree4a4bcb17604c30df45d827a11260d89f03c6f0b5 /include/configs/ipe337.h
parent35fd1e8f5bc6270b884e7728ebf255254b565cc3 (diff)
downloadbarebox-a119fc273b8e7712bff086494a9dbc05764097a5.tar.gz
barebox-a119fc273b8e7712bff086494a9dbc05764097a5.tar.xz
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>
Diffstat (limited to 'include/configs/ipe337.h')
-rw-r--r--include/configs/ipe337.h9
1 files changed, 9 insertions, 0 deletions
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 */