summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap/dvfs/0013-OMAP-Disable-smartreflex-across-DVFS.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap/dvfs/0013-OMAP-Disable-smartreflex-across-DVFS.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap/dvfs/0013-OMAP-Disable-smartreflex-across-DVFS.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap/dvfs/0013-OMAP-Disable-smartreflex-across-DVFS.patch b/extras/recipes-kernel/linux/linux-omap/dvfs/0013-OMAP-Disable-smartreflex-across-DVFS.patch
new file mode 100644
index 00000000..89384a8e
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap/dvfs/0013-OMAP-Disable-smartreflex-across-DVFS.patch
@@ -0,0 +1,50 @@
1From 4c68660aa69a5eaeaff7fda7e2297e2d31de0333 Mon Sep 17 00:00:00 2001
2From: Thara Gopinath <thara@ti.com>
3Date: Fri, 2 Jul 2010 13:06:57 +0530
4Subject: [PATCH 13/20] OMAP: Disable smartreflex across DVFS
5
6This patch disables smartreflex for a particular voltage
7domain when the the voltage domain and the devices belonging
8to it is being scaled and re-enables it back once the scaling
9is done.
10
11Signed-off-by: Thara Gopinath <thara@ti.com>
12---
13 arch/arm/mach-omap2/voltage.c | 7 +++++++
14 1 files changed, 7 insertions(+), 0 deletions(-)
15
16diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2/voltage.c
17index c83d968..2f331de 100644
18--- a/arch/arm/mach-omap2/voltage.c
19+++ b/arch/arm/mach-omap2/voltage.c
20@@ -32,6 +32,7 @@
21 #include <plat/common.h>
22 #include <plat/voltage.h>
23 #include <plat/omap_device.h>
24+#include <plat/smartreflex.h>
25
26 #include "prm-regbits-34xx.h"
27 #include "prm-regbits-44xx.h"
28@@ -1806,6 +1807,9 @@ int omap_voltage_scale(struct voltagedomain *voltdm, unsigned long volt)
29 return -EINVAL;
30 }
31
32+ /* Disable smartreflex module across voltage and frequency scaling */
33+ omap_sr_disable(voltdm);
34+
35 if (curr_volt == volt) {
36 is_volt_scaled = 1;
37 } else if (curr_volt < volt) {
38@@ -1840,6 +1844,9 @@ int omap_voltage_scale(struct voltagedomain *voltdm, unsigned long volt)
39
40 mutex_unlock(&vdd->scaling_mutex);
41
42+ /* Enable Smartreflex module */
43+ omap_sr_enable(voltdm);
44+
45 /* Scale dependent vdds */
46 scale_dep_vdd(vdd);
47
48--
491.6.6.1
50