summaryrefslogtreecommitdiff
path: root/libre/linux-libre-lts/0008-ARM-sun5i-chip-Add-CPU-regulator-for-cpufreq.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/linux-libre-lts/0008-ARM-sun5i-chip-Add-CPU-regulator-for-cpufreq.patch')
-rw-r--r--libre/linux-libre-lts/0008-ARM-sun5i-chip-Add-CPU-regulator-for-cpufreq.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/libre/linux-libre-lts/0008-ARM-sun5i-chip-Add-CPU-regulator-for-cpufreq.patch b/libre/linux-libre-lts/0008-ARM-sun5i-chip-Add-CPU-regulator-for-cpufreq.patch
new file mode 100644
index 000000000..fc7418ab2
--- /dev/null
+++ b/libre/linux-libre-lts/0008-ARM-sun5i-chip-Add-CPU-regulator-for-cpufreq.patch
@@ -0,0 +1,33 @@
+From db30fce1eea58e50ae8b2722704b4f529c394dba Mon Sep 17 00:00:00 2001
+From: Maxime Ripard <maxime.ripard@free-electrons.com>
+Date: Wed, 25 Nov 2015 16:39:04 +0100
+Subject: [PATCH 8/9] ARM: sun5i: chip: Add CPU regulator for cpufreq
+
+The current DT doesn't have a phandle to the CPU regulator in the CPU node,
+which disables the CPU voltage scaling entirely.
+
+Add that phandle.
+
+Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
+---
+ arch/arm/boot/dts/sun5i-r8-chip.dts | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/arch/arm/boot/dts/sun5i-r8-chip.dts b/arch/arm/boot/dts/sun5i-r8-chip.dts
+index 530ab28..f6898c6 100644
+--- a/arch/arm/boot/dts/sun5i-r8-chip.dts
++++ b/arch/arm/boot/dts/sun5i-r8-chip.dts
+@@ -70,6 +70,10 @@
+ status = "okay";
+ };
+
++&cpu0 {
++ cpu-supply = <&reg_dcdc2>;
++};
++
+ &ehci0 {
+ status = "okay";
+ };
+--
+cgit v0.12
+