clk-raspberrypi: Allow cpufreq driver to also adjust gpu clocks
authorpopcornmix <popcornmix@gmail.com>
Mon, 9 Sep 2019 14:49:56 +0000 (15:49 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:10 +0000 (16:33 +0100)
For performance/power it is beneficial to adjust gpu clocks with arm clock.
This is how the downstream cpufreq driver works

Signed-off-by: popcornmix <popcornmix@gmail.com>
drivers/clk/bcm/clk-raspberrypi.c

index 1654fd0..e4e1392 100644 (file)
@@ -70,7 +70,7 @@ static int raspberrypi_clock_property(struct rpi_firmware *firmware, u32 tag,
        struct raspberrypi_firmware_prop msg = {
                .id = cpu_to_le32(clk),
                .val = cpu_to_le32(*val),
-               .disable_turbo = cpu_to_le32(1),
+               .disable_turbo = cpu_to_le32(0),
        };
        int ret;