aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/patches-5.4/0057-add-fab-scaling-support-with-cpufreq.patch
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2020-01-26 04:27:46 +0100
committerPetr Štetiar <ynezz@true.cz>2020-03-03 23:38:23 +0100
commit71eb7b057b953e8ea40eae3c19db5c064f28b677 (patch)
tree2085e94bd14355332c4a88c79ea2a961e8540653 /target/linux/ipq806x/patches-5.4/0057-add-fab-scaling-support-with-cpufreq.patch
parent68b526e0a43d5c1a49604e8acc614809a5c4f4e3 (diff)
downloadupstream-71eb7b057b953e8ea40eae3c19db5c064f28b677.tar.gz
upstream-71eb7b057b953e8ea40eae3c19db5c064f28b677.tar.bz2
upstream-71eb7b057b953e8ea40eae3c19db5c064f28b677.zip
ipq806x: refresh patches for kernel 5.4
Refresh patches and minor changes for new kernel support Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/ipq806x/patches-5.4/0057-add-fab-scaling-support-with-cpufreq.patch')
-rw-r--r--target/linux/ipq806x/patches-5.4/0057-add-fab-scaling-support-with-cpufreq.patch16
1 files changed, 8 insertions, 8 deletions
diff --git a/target/linux/ipq806x/patches-5.4/0057-add-fab-scaling-support-with-cpufreq.patch b/target/linux/ipq806x/patches-5.4/0057-add-fab-scaling-support-with-cpufreq.patch
index dc65230f47..441500df79 100644
--- a/target/linux/ipq806x/patches-5.4/0057-add-fab-scaling-support-with-cpufreq.patch
+++ b/target/linux/ipq806x/patches-5.4/0057-add-fab-scaling-support-with-cpufreq.patch
@@ -109,8 +109,7 @@
+ drv_data->cpu_freq_threshold = 1000000000;
+ }
+
-+ drv_data->apps_fab_clk = devm_clk_get(&pdev->dev, "apps-fab-clk");
-+ apps_fab_clk = drv_data->apps_fab_clk;
++ apps_fab_clk = devm_clk_get(&pdev->dev, "apps-fab-clk");
+ ret = PTR_ERR_OR_ZERO(apps_fab_clk);
+ if (ret) {
+ /*
@@ -124,11 +123,11 @@
+ goto err;
+ }
+
-+ clk_set_rate(apps_fab_clk, drv_data->fab_freq_high);
+ clk_prepare_enable(apps_fab_clk);
++ clk_set_rate(apps_fab_clk, drv_data->fab_freq_high);
++ drv_data->apps_fab_clk = apps_fab_clk;
+
-+ drv_data->ddr_fab_clk = devm_clk_get(&pdev->dev, "ddr-fab-clk");
-+ ddr_fab_clk = drv_data->ddr_fab_clk;
++ ddr_fab_clk = devm_clk_get(&pdev->dev, "ddr-fab-clk");
+ ret = PTR_ERR_OR_ZERO(ddr_fab_clk);
+ if (ret) {
+ /*
@@ -143,8 +142,9 @@
+ goto err;
+ }
+
-+ clk_set_rate(ddr_fab_clk, drv_data->fab_freq_high);
+ clk_prepare_enable(ddr_fab_clk);
++ clk_set_rate(ddr_fab_clk, drv_data->fab_freq_high);
++ drv_data->ddr_fab_clk = ddr_fab_clk;
+
+ return 0;
+err:
@@ -219,7 +219,7 @@
+#endif
--- a/drivers/cpufreq/cpufreq-dt.c
+++ b/drivers/cpufreq/cpufreq-dt.c
-@@ -24,6 +24,7 @@
+@@ -20,6 +20,7 @@
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <linux/thermal.h>
@@ -227,7 +227,7 @@
#include "cpufreq-dt.h"
-@@ -106,6 +107,13 @@ static int set_target(struct cpufreq_pol
+@@ -111,6 +112,13 @@ static int set_target(struct cpufreq_pol
}
}
}