summaryrefslogtreecommitdiff
path: root/polux
diff options
context:
space:
mode:
authorOlivier Dufour2013-01-18 12:27:55 +0100
committerOlivier Dufour2013-01-25 13:40:55 +0100
commita67175e509f33600b4c774a8e459c4b188a141ce (patch)
tree36eabcd959101ed9f9d4a6f6ddee507cc111ac1e /polux
parentba9f176419cad31558377cbfbd320cefe322a3b8 (diff)
polux/linux/mse500: add SET_CLK config, refs #1325
Diffstat (limited to 'polux')
-rw-r--r--polux/include/mse500/msk500-ddr2-board.h6
-rw-r--r--polux/linux-2.6.10/arch/arm/mach-mse500/Kconfig12
2 files changed, 17 insertions, 1 deletions
diff --git a/polux/include/mse500/msk500-ddr2-board.h b/polux/include/mse500/msk500-ddr2-board.h
index 7462334f89..f5dae0828d 100644
--- a/polux/include/mse500/msk500-ddr2-board.h
+++ b/polux/include/mse500/msk500-ddr2-board.h
@@ -44,7 +44,11 @@
* Clocks Definitions
*************************************************************
*/
-#define CLK_AHB (96000000)
+#if defined (CONFIG_SYSCLK_SPEED)
+# define CLK_AHB (CONFIG_SYSCLK_SPEED * 1000000)
+#else
+# define CLK_AHB (96000000)
+#endif
#if defined(CONFIG_CHIP_MSE500_200)
#define CLK_ARM (CLK_AHB*2)
#define EXT_APB_CLK (CLK_AHB)
diff --git a/polux/linux-2.6.10/arch/arm/mach-mse500/Kconfig b/polux/linux-2.6.10/arch/arm/mach-mse500/Kconfig
index 60dc8b6314..5421cb52f7 100644
--- a/polux/linux-2.6.10/arch/arm/mach-mse500/Kconfig
+++ b/polux/linux-2.6.10/arch/arm/mach-mse500/Kconfig
@@ -39,6 +39,7 @@ config CHIP_MSE500_200
select CHIP_FEATURE_INT_MAP_V2
select CHIP_FEATURE_MSEETH
select AFE_MSEAFE
+ select CHIP_FEATURE_SET_CLK
# Chip features (CHIP_FEATURE_*)
# ==============================
@@ -80,4 +81,15 @@ config CHIP_FEATURE_MSEETH
config AFE_MSEAFE
def_bool n
+config CHIP_FEATURE_SET_CLK
+ def_bool n
+
+# Other features (workarounds, ...)
+# =================================
+# This is not shown to the user, and should be bound to a CHIP_FEATURE
+config SYSCLK_SPEED
+ depends on CHIP_FEATURE_SET_CLK
+ int "SYSCLK speed in MHz"
+ default 96
+
endmenu