diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-08-21 10:54:34 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-08-21 19:07:07 +0200 |
commit | 8299d1f057439f94c6a4412e2e5c5082b82a30c9 (patch) | |
tree | 1bf678d61f11f7394493be464c7876e496f7faed /target/linux/bcm27xx/patches-5.10/950-0539-drm-vc4-hdmi-Convert-to-the-new-clock-request-API.patch | |
parent | 33b6885975ce376ff075362b7f0890326043111b (diff) | |
download | upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.tar.gz upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.tar.bz2 upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.zip |
bcm27xx: add kernel 5.10 support
Rebased RPi foundation patches on linux 5.10.59, removed applied and reverted
patches, wireless patches and defconfig patches.
bcm2708: boot tested on RPi B+ v1.2
bcm2709: boot tested on RPi 4B v1.1 4G
bcm2711: boot tested on RPi 4B v1.1 4G
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm27xx/patches-5.10/950-0539-drm-vc4-hdmi-Convert-to-the-new-clock-request-API.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-5.10/950-0539-drm-vc4-hdmi-Convert-to-the-new-clock-request-API.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.10/950-0539-drm-vc4-hdmi-Convert-to-the-new-clock-request-API.patch b/target/linux/bcm27xx/patches-5.10/950-0539-drm-vc4-hdmi-Convert-to-the-new-clock-request-API.patch new file mode 100644 index 0000000000..174f6fb3a1 --- /dev/null +++ b/target/linux/bcm27xx/patches-5.10/950-0539-drm-vc4-hdmi-Convert-to-the-new-clock-request-API.patch @@ -0,0 +1,42 @@ +From ccc2fa16de3fef192885831595a168a36bfdd842 Mon Sep 17 00:00:00 2001 +From: Dom Cobley <popcornmix@gmail.com> +Date: Tue, 13 Apr 2021 14:10:03 +0100 +Subject: [PATCH] drm/vc4: hdmi: Convert to the new clock request API + +The new clock request API allows us to increase the rate of the +core clock as required during mode set while decreasing it when +we're done, resulting in a better power-efficiency. + +Signed-off-by: Dom Cobley <popcornmix@gmail.com> +--- + drivers/gpu/drm/vc4/vc4_kms.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +--- a/drivers/gpu/drm/vc4/vc4_kms.c ++++ b/drivers/gpu/drm/vc4/vc4_kms.c +@@ -313,6 +313,7 @@ vc4_atomic_complete_commit(struct drm_at + struct vc4_hvs *hvs = vc4->hvs; + struct drm_crtc_state *new_crtc_state; + struct drm_crtc *crtc; ++ struct clk_request *core_req; + int i; + + for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { +@@ -326,7 +327,7 @@ vc4_atomic_complete_commit(struct drm_at + } + + if (vc4->hvs && vc4->hvs->hvs5) +- clk_set_min_rate(hvs->core_clk, 500000000); ++ core_req = clk_request_start(hvs->core_clk, 500000000); + + drm_atomic_helper_wait_for_fences(dev, state, false); + +@@ -358,7 +359,7 @@ vc4_atomic_complete_commit(struct drm_at + drm_atomic_helper_commit_cleanup_done(state); + + if (vc4->hvs && vc4->hvs->hvs5) +- clk_set_min_rate(hvs->core_clk, 0); ++ clk_request_done(core_req); + + drm_atomic_state_put(state); + |