aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.10/950-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch
diff options
context:
space:
mode:
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
commit8299d1f057439f94c6a4412e2e5c5082b82a30c9 (patch)
tree1bf678d61f11f7394493be464c7876e496f7faed /target/linux/bcm27xx/patches-5.10/950-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch
parent33b6885975ce376ff075362b7f0890326043111b (diff)
downloadupstream-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-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch')
-rw-r--r--target/linux/bcm27xx/patches-5.10/950-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.10/950-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch b/target/linux/bcm27xx/patches-5.10/950-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch
new file mode 100644
index 0000000000..2f1d1799a0
--- /dev/null
+++ b/target/linux/bcm27xx/patches-5.10/950-0573-drm-vc4-hvs-Make-the-HVS-bind-first.patch
@@ -0,0 +1,41 @@
+From 7109030996578e85610f30dc60c04c952e87fb2a Mon Sep 17 00:00:00 2001
+From: Maxime Ripard <maxime@cerno.tech>
+Date: Thu, 25 Feb 2021 14:42:03 +0100
+Subject: [PATCH] drm/vc4: hvs: Make the HVS bind first
+
+We'll need to have the HVS binding before the HDMI controllers so that
+we can check whether the firmware allows to run in 4kp60. Reorder a bit
+the component list, and document the current constraints we're aware of.
+
+Acked-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
+Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
+Signed-off-by: Maxime Ripard <maxime@cerno.tech>
+---
+ drivers/gpu/drm/vc4/vc4_drv.c | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+--- a/drivers/gpu/drm/vc4/vc4_drv.c
++++ b/drivers/gpu/drm/vc4/vc4_drv.c
+@@ -354,12 +354,21 @@ static const struct component_master_ops
+ .unbind = vc4_drm_unbind,
+ };
+
++/*
++ * This list determines the binding order of our components, and we have
++ * a few constraints:
++ * - The TXP driver needs to be bound before the PixelValves (CRTC)
++ * but after the HVS to set the possible_crtc field properly
++ * - The HDMI driver needs to be bound after the HVS so that we can
++ * lookup the HVS maximum core clock rate and figure out if we
++ * support 4kp60 or not.
++ */
+ static struct platform_driver *const component_drivers[] = {
++ &vc4_hvs_driver,
+ &vc4_hdmi_driver,
+ &vc4_vec_driver,
+ &vc4_dpi_driver,
+ &vc4_dsi_driver,
+- &vc4_hvs_driver,
+ &vc4_txp_driver,
+ &vc4_crtc_driver,
+ &vc4_firmware_kms_driver,