From c4afe30818f2f6355a7d5bf006c4a4eafa8ae8f3 Mon Sep 17 00:00:00 2001 From: Memphiz Date: Thu, 15 Jan 2015 09:45:38 +0100 Subject: [PATCH] [Wetek.Play] - allow real 1.5ghz (its 1512MHz) and remove the 1.2GHz clamp in the meson6 clock --- projects/WeTek_Play/patches/linux/30-g18dtd.patch | 4 ++-- .../patches/linux/90-meson6-maxclock-unclamp.patch | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 projects/WeTek_Play/patches/linux/90-meson6-maxclock-unclamp.patch diff --git a/projects/WeTek_Play/patches/linux/30-g18dtd.patch b/projects/WeTek_Play/patches/linux/30-g18dtd.patch index f1ec3ce8a4..a70fc2d63f 100644 --- a/projects/WeTek_Play/patches/linux/30-g18dtd.patch +++ b/projects/WeTek_Play/patches/linux/30-g18dtd.patch @@ -67,7 +67,7 @@ diff -Naur a/arch/arm/boot/dts/amlogic/meson6_g18.dtd b/arch/arm/boot/dts/amlogi + #address-cells = <1>; + #size-cells = <1>; + chosen { -+ bootargs = "root=/dev/ram0 rdinit=/init boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 BOOT_IMAGE=kernel.img console=tty0 consoleblank=0 scaling_governor=hotplug scaling_min_freq=200000 scaling_max_freq=1500000 systemd.show_status=auto"; ++ bootargs = "root=/dev/ram0 rdinit=/init boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 BOOT_IMAGE=kernel.img console=tty0 consoleblank=0 scaling_governor=hotplug scaling_min_freq=200000 scaling_max_freq=1512000 systemd.show_status=auto"; + }; + +/// *************************************************************************************** @@ -1236,7 +1236,7 @@ diff -Naur a/arch/arm/boot/dts/amlogic/meson6_g18.dtd b/arch/arm/boot/dts/amlogi + 1080000 1220000 1220000 + 1200000 1240000 1240000 + 1320000 1320000 1320000 -+ 1500000 1320000 1320000 ++ 1512000 1320000 1320000 + >; + }; + }; diff --git a/projects/WeTek_Play/patches/linux/90-meson6-maxclock-unclamp.patch b/projects/WeTek_Play/patches/linux/90-meson6-maxclock-unclamp.patch new file mode 100644 index 0000000000..450477d272 --- /dev/null +++ b/projects/WeTek_Play/patches/linux/90-meson6-maxclock-unclamp.patch @@ -0,0 +1,11 @@ +--- a/arch/arm/mach-meson6/clock.c.orig 2015-01-14 18:04:05.216364113 +0100 ++++ b/arch/arm/mach-meson6/clock.c 2015-01-14 18:04:22.807966326 +0100 +@@ -1419,7 +1419,7 @@ + #endif /* CONFIG_SMP */ + int error = 0; + +- int cpu_freq_limit = 1200000000; ++ int cpu_freq_limit = 1512000000; + if (rate < 1000) + rate *= 1000000; +