[Armadeus-commitlog] armadeus branch, master, updated. armadeus-5.0-3-gf6a3a49
Brought to you by:
sszy
|
From: jorasse <jo...@us...> - 2012-08-16 11:23:38
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via f6a3a49a8f3549413e914e16d4e2cfe7cd1639e0 (commit)
from e850668bfc48dcb76648b593b72f7fa4bced891f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f6a3a49a8f3549413e914e16d4e2cfe7cd1639e0
Author: Eric Jarrige <eri...@ar...>
Date: Thu Aug 16 13:26:56 2012 +0200
[LINUX] apf28: Support RAM frequency scaling options: DDR2, mDDR and disable RAM frequency scaling
-----------------------------------------------------------------------
Summary of changes:
...eus-support_ram_frequency_scaling_options.patch | 100 ++++++++++++++++++++
1 files changed, 100 insertions(+), 0 deletions(-)
create mode 100644 patches/linux/2.6.35/460-armadeus-support_ram_frequency_scaling_options.patch
diff --git a/patches/linux/2.6.35/460-armadeus-support_ram_frequency_scaling_options.patch b/patches/linux/2.6.35/460-armadeus-support_ram_frequency_scaling_options.patch
new file mode 100644
index 0000000..56f119e
--- /dev/null
+++ b/patches/linux/2.6.35/460-armadeus-support_ram_frequency_scaling_options.patch
@@ -0,0 +1,100 @@
+Support RAM frequency scaling options: DDR2, mDDR and disable RAM frequency
+scaling.
+
+This patch does not fix USB and ethernet issues reported with dynamic frequency
+scaling governors: conservative and ondemand. in such a case disabling RAM
+frequency scaling is the best workaroung with a very limit impact on the cpu
+power consumption with a lose of few mA (please fixme).
+
+Signed-off-by: Eric Jarrige <eri...@ar...>
+---
+Index: linux-2.6.35.3/arch/arm/mach-mx28/clock.c
+===================================================================
+--- linux-2.6.35.3/arch/arm/mach-mx28/clock.c
++++ linux-2.6.35.3/arch/arm/mach-mx28/clock.c
+@@ -885,6 +885,7 @@ static unsigned long emi_round_rate(stru
+
+ static int emi_set_rate(struct clk *clk, unsigned long rate)
+ {
++#ifdef CONFIG_MXS_RAM_FREQ_SCALING
+ struct mxs_emi_scaling_data emi;
+ volatile unsigned int StateX, StateH;
+ volatile unsigned int APBHCTRL_Backup, APBXCTRL_Backup;
+@@ -982,6 +983,7 @@ static int emi_set_rate(struct clk *clk,
+ printk(KERN_ERR "couldn't set up EMI divisor\n");
+ return -ETIMEDOUT;
+ }
++#endif /* CONFIG_MXS_RAM_FREQ_SCALING */
+
+ return 0;
+ }
+Index: linux-2.6.35.3/arch/arm/mach-mx28/emi_settings.h
+===================================================================
+--- linux-2.6.35.3/arch/arm/mach-mx28/emi_settings.h
++++ linux-2.6.35.3/arch/arm/mach-mx28/emi_settings.h
+@@ -27,6 +27,7 @@
+ #define SCALING_DATA_NEW_FREQ_OFFSET 12
+
+ #ifndef __ASSEMBLER__
++#ifdef CONFIG_MXS_RAM_FREQ_SCALING
+ void mxs_ram_freq_scale_end();
+ void DDR2EmiController_EDE1116_133MHz(void);
+ void DDR2EmiController_EDE1116_166MHz(void);
+@@ -35,6 +36,7 @@ void mDDREmiController_24MHz(void);
+ void mDDREmiController_133MHz(void);
+ void mDDREmiController_200MHz(void);
+ unsigned int *get_current_emidata();
++#endif /* CONFIG_MXS_RAM_FREQ_SCALING */
+ #endif
+
+ #endif
+Index: linux-2.6.35.3/arch/arm/plat-mxs/include/mach/clock.h
+===================================================================
+--- linux-2.6.35.3/arch/arm/plat-mxs/include/mach/clock.h
++++ linux-2.6.35.3/arch/arm/plat-mxs/include/mach/clock.h
+@@ -103,11 +103,6 @@ struct mxs_emi_scaling_data {
+ #ifdef CONFIG_MXS_RAM_FREQ_SCALING
+ extern int mxs_ram_freq_scale(struct mxs_emi_scaling_data *);
+ extern u32 mxs_ram_funcs_sz;
+-#else
+-static inline int mxs_ram_freq_scale(struct mxs_emi_scaling_data *p)
+-{
+-}
+-static u32 mxs_ram_funcs_sz;
+ #endif
+
+ /* Clock flags */
+Index: linux-2.6.35.3/arch/arm/plat-mxs/Kconfig
+===================================================================
+--- linux-2.6.35.3/arch/arm/plat-mxs/Kconfig
++++ linux-2.6.35.3/arch/arm/plat-mxs/Kconfig
+@@ -152,6 +152,8 @@ config MXS_AUART4_DMA_ENABLE
+ help
+ Set application uart 4 to dma mode
+
++endmenu
++
+ config MXS_RAM_FREQ_SCALING
+ bool "RAM frequency scaling support"
+ depends on ARCH_MXS
+@@ -163,10 +165,10 @@ choice
+
+ config MXS_RAM_MDDR
+ bool "mDDR SDRAM"
+- depends on ARCH_MX23
++ depends on ARCH_MXS
+ config MXS_RAM_DDR
+ bool "DDR SDRAM"
+- depends on ARCH_MX23
++ depends on ARCH_MXS
+
+ endchoice
+
+@@ -174,6 +176,5 @@ config IRAM_ALLOC
+ bool
+ default y
+ select GENERIC_ALLOCATOR
+-endmenu
+
+ endif
+
hooks/post-receive
--
armadeus
|