summaryrefslogtreecommitdiff
path: root/cleopatre
diff options
context:
space:
mode:
authorOlivier Dufour2013-01-15 16:01:04 +0100
committerOlivier Dufour2013-01-25 13:40:55 +0100
commitba9f176419cad31558377cbfbd320cefe322a3b8 (patch)
tree6dba0c3832133d4da95ffb8024e6792c4c16d303 /cleopatre
parentcd2ec2fa3ae541d7c6f60de1d22dd16b2e9d6392 (diff)
cleo/linux/arch/arm/spc300: add config to set CLK speed, refs #1325
For MSE500 boards, the speed of SYSCLK is defined by CONFIG_SYSCLK_SPEED, and is set at 246MHz by default.
Diffstat (limited to 'cleopatre')
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/arizona/linux26.config1
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/mcr500/linux26.config2
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/mpr520/linux26.config6
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/mse500/linux26.config2
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/mse500dini_300/linux26.config1
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/scr310/linux26.config1
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/spk300/linux26.config1
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/spk300g/linux26.config1
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/spk310/linux26.config1
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/spr300/linux26.config1
-rw-r--r--cleopatre/buildroot/target/device/Spidcom/spr310/linux26.config1
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Kconfig14
12 files changed, 28 insertions, 4 deletions
diff --git a/cleopatre/buildroot/target/device/Spidcom/arizona/linux26.config b/cleopatre/buildroot/target/device/Spidcom/arizona/linux26.config
index 044939b178..23e73b4515 100644
--- a/cleopatre/buildroot/target/device/Spidcom/arizona/linux26.config
+++ b/cleopatre/buildroot/target/device/Spidcom/arizona/linux26.config
@@ -214,6 +214,7 @@ CONFIG_CHIP_FEATURE_SPCPIO=y
# CONFIG_CHIP_FEATURE_EXTRA_TIMERS is not set
# CONFIG_CHIP_FEATURE_ETHERNET2 is not set
# CONFIG_CHIP_FEATURE_SRAM is not set
+# CONFIG_CHIP_FEATURE_SET_CLK is not set
CONFIG_HAVE_MTD_SPC300_NOR=y
CONFIG_MTD_SPC300_NOR=y
# CONFIG_HAVE_POWER_LED is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/mcr500/linux26.config b/cleopatre/buildroot/target/device/Spidcom/mcr500/linux26.config
index 3d4d4bccf2..57f835e5ca 100644
--- a/cleopatre/buildroot/target/device/Spidcom/mcr500/linux26.config
+++ b/cleopatre/buildroot/target/device/Spidcom/mcr500/linux26.config
@@ -214,6 +214,8 @@ CONFIG_CHIP_FEATURE_IOMUX=y
CONFIG_CHIP_FEATURE_EXTRA_TIMERS=y
CONFIG_CHIP_FEATURE_ETHERNET2=y
CONFIG_CHIP_FEATURE_SRAM=y
+CONFIG_CHIP_FEATURE_SET_CLK=y
+CONFIG_SYSCLK_SPEED=246
# CONFIG_HAVE_MTD_SPC300_NOR is not set
# CONFIG_HAVE_POWER_LED is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/mpr520/linux26.config b/cleopatre/buildroot/target/device/Spidcom/mpr520/linux26.config
index 392b731d43..85574d030f 100644
--- a/cleopatre/buildroot/target/device/Spidcom/mpr520/linux26.config
+++ b/cleopatre/buildroot/target/device/Spidcom/mpr520/linux26.config
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.25.10
-# Thu Jan 17 16:19:52 2013
+# Mon Jan 21 14:15:13 2013
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
@@ -214,9 +214,11 @@ CONFIG_CHIP_FEATURE_IOMUX=y
CONFIG_CHIP_FEATURE_EXTRA_TIMERS=y
CONFIG_CHIP_FEATURE_ETHERNET2=y
CONFIG_CHIP_FEATURE_SRAM=y
-# CONFIG_HAVE_MTD_SPC300_NOR is not set
+CONFIG_CHIP_FEATURE_SET_CLK=y
+CONFIG_SYSCLK_SPEED=246
CONFIG_HAVE_POWER_LED=y
CONFIG_LOW_POWER_LED_NUM=3
+# CONFIG_HAVE_MTD_SPC300_NOR is not set
#
# Processor Type
diff --git a/cleopatre/buildroot/target/device/Spidcom/mse500/linux26.config b/cleopatre/buildroot/target/device/Spidcom/mse500/linux26.config
index bcb6ef8d66..d49f761abe 100644
--- a/cleopatre/buildroot/target/device/Spidcom/mse500/linux26.config
+++ b/cleopatre/buildroot/target/device/Spidcom/mse500/linux26.config
@@ -214,6 +214,8 @@ CONFIG_CHIP_FEATURE_IOMUX=y
CONFIG_CHIP_FEATURE_EXTRA_TIMERS=y
CONFIG_CHIP_FEATURE_ETHERNET2=y
CONFIG_CHIP_FEATURE_SRAM=y
+CONFIG_CHIP_FEATURE_SET_CLK=y
+CONFIG_SYSCLK_SPEED=246
# CONFIG_HAVE_MTD_SPC300_NOR is not set
# CONFIG_HAVE_POWER_LED is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/mse500dini_300/linux26.config b/cleopatre/buildroot/target/device/Spidcom/mse500dini_300/linux26.config
index 4a0ebfeb58..8c61653707 100644
--- a/cleopatre/buildroot/target/device/Spidcom/mse500dini_300/linux26.config
+++ b/cleopatre/buildroot/target/device/Spidcom/mse500dini_300/linux26.config
@@ -214,6 +214,7 @@ CONFIG_CHIP_FEATURE_EXTRA_NVRAM_FIELDS=y
# CONFIG_CHIP_FEATURE_EXTRA_TIMERS is not set
# CONFIG_CHIP_FEATURE_ETHERNET2 is not set
# CONFIG_CHIP_FEATURE_SRAM is not set
+# CONFIG_CHIP_FEATURE_SET_CLK is not set
# CONFIG_HAVE_MTD_SPC300_NOR is not set
# CONFIG_HAVE_POWER_LED is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/scr310/linux26.config b/cleopatre/buildroot/target/device/Spidcom/scr310/linux26.config
index 6afc7c8337..f3d232b18e 100644
--- a/cleopatre/buildroot/target/device/Spidcom/scr310/linux26.config
+++ b/cleopatre/buildroot/target/device/Spidcom/scr310/linux26.config
@@ -214,6 +214,7 @@ CONFIG_CHIP_FEATURE_SPCPIO=y
# CONFIG_CHIP_FEATURE_EXTRA_TIMERS is not set
# CONFIG_CHIP_FEATURE_ETHERNET2 is not set
# CONFIG_CHIP_FEATURE_SRAM is not set
+# CONFIG_CHIP_FEATURE_SET_CLK is not set
# CONFIG_HAVE_MTD_SPC300_NOR is not set
# CONFIG_HAVE_POWER_LED is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/spk300/linux26.config b/cleopatre/buildroot/target/device/Spidcom/spk300/linux26.config
index 19d7f4dea5..af133ce2d2 100644
--- a/cleopatre/buildroot/target/device/Spidcom/spk300/linux26.config
+++ b/cleopatre/buildroot/target/device/Spidcom/spk300/linux26.config
@@ -214,6 +214,7 @@ CONFIG_CHIP_FEATURE_SPCPIO=y
# CONFIG_CHIP_FEATURE_EXTRA_TIMERS is not set
# CONFIG_CHIP_FEATURE_ETHERNET2 is not set
# CONFIG_CHIP_FEATURE_SRAM is not set
+# CONFIG_CHIP_FEATURE_SET_CLK is not set
# CONFIG_HAVE_MTD_SPC300_NOR is not set
# CONFIG_HAVE_POWER_LED is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/spk300g/linux26.config b/cleopatre/buildroot/target/device/Spidcom/spk300g/linux26.config
index 217f786a80..5e891e3279 100644
--- a/cleopatre/buildroot/target/device/Spidcom/spk300g/linux26.config
+++ b/cleopatre/buildroot/target/device/Spidcom/spk300g/linux26.config
@@ -214,6 +214,7 @@ CONFIG_CHIP_FEATURE_SPCPIO=y
# CONFIG_CHIP_FEATURE_EXTRA_TIMERS is not set
# CONFIG_CHIP_FEATURE_ETHERNET2 is not set
# CONFIG_CHIP_FEATURE_SRAM is not set
+# CONFIG_CHIP_FEATURE_SET_CLK is not set
# CONFIG_HAVE_MTD_SPC300_NOR is not set
# CONFIG_HAVE_POWER_LED is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/spk310/linux26.config b/cleopatre/buildroot/target/device/Spidcom/spk310/linux26.config
index 5e08704a2f..d4bffc9a54 100644
--- a/cleopatre/buildroot/target/device/Spidcom/spk310/linux26.config
+++ b/cleopatre/buildroot/target/device/Spidcom/spk310/linux26.config
@@ -214,6 +214,7 @@ CONFIG_CHIP_FEATURE_SPCPIO=y
# CONFIG_CHIP_FEATURE_EXTRA_TIMERS is not set
# CONFIG_CHIP_FEATURE_ETHERNET2 is not set
# CONFIG_CHIP_FEATURE_SRAM is not set
+# CONFIG_CHIP_FEATURE_SET_CLK is not set
# CONFIG_HAVE_MTD_SPC300_NOR is not set
# CONFIG_HAVE_POWER_LED is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/spr300/linux26.config b/cleopatre/buildroot/target/device/Spidcom/spr300/linux26.config
index 4dccb45a39..182074c56e 100644
--- a/cleopatre/buildroot/target/device/Spidcom/spr300/linux26.config
+++ b/cleopatre/buildroot/target/device/Spidcom/spr300/linux26.config
@@ -214,6 +214,7 @@ CONFIG_CHIP_FEATURE_SPCPIO=y
# CONFIG_CHIP_FEATURE_EXTRA_TIMERS is not set
# CONFIG_CHIP_FEATURE_ETHERNET2 is not set
# CONFIG_CHIP_FEATURE_SRAM is not set
+# CONFIG_CHIP_FEATURE_SET_CLK is not set
# CONFIG_HAVE_MTD_SPC300_NOR is not set
# CONFIG_HAVE_POWER_LED is not set
diff --git a/cleopatre/buildroot/target/device/Spidcom/spr310/linux26.config b/cleopatre/buildroot/target/device/Spidcom/spr310/linux26.config
index 38fd28b9bf..e5cbb1c346 100644
--- a/cleopatre/buildroot/target/device/Spidcom/spr310/linux26.config
+++ b/cleopatre/buildroot/target/device/Spidcom/spr310/linux26.config
@@ -214,6 +214,7 @@ CONFIG_CHIP_FEATURE_SPCPIO=y
# CONFIG_CHIP_FEATURE_EXTRA_TIMERS is not set
# CONFIG_CHIP_FEATURE_ETHERNET2 is not set
# CONFIG_CHIP_FEATURE_SRAM is not set
+# CONFIG_CHIP_FEATURE_SET_CLK is not set
# CONFIG_HAVE_MTD_SPC300_NOR is not set
# CONFIG_HAVE_POWER_LED is not set
diff --git a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Kconfig b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Kconfig
index 08c0aa0083..3e01818a47 100644
--- a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Kconfig
+++ b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/Kconfig
@@ -148,6 +148,7 @@ config CHIP_MSE500
select CHIP_FEATURE_EXTRA_TIMERS
select CHIP_FEATURE_ETHERNET2
select CHIP_FEATURE_SRAM
+ select CHIP_FEATURE_SET_CLK
# Chip features (CHIP_FEATURE_*)
# ==============================
@@ -203,9 +204,16 @@ config CHIP_FEATURE_ETHERNET2
def_bool n
config CHIP_FEATURE_SRAM
def_bool n
+config CHIP_FEATURE_SET_CLK
+ def_bool n
-source "arch/arm/mach-spc300/Kconfig.flash"
-
+# 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 246
config HAVE_POWER_LED
def_bool n
config LOW_POWER_LED_NUM
@@ -213,4 +221,6 @@ config LOW_POWER_LED_NUM
int "Low Power LED GPIO"
default 3
+source "arch/arm/mach-spc300/Kconfig.flash"
+
endmenu