mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
ca5c695a45
Deleted following upstreamed patches: bcm27xx: 950-0006-drm-vc4-hdmi-Fix-HPD-GPIO-detection.patch bcm27xx: 950-0420-drm-vc4-Adopt-the-dma-configuration-from-the-HVS-or-.patch bcm27xx: 950-0425-drm-vc4-A-present-but-empty-dmas-disables-audio.patch bcm27xx: 950-0432-vc4-drm-Avoid-full-hdmi-audio-fifo-writes.patch bcm27xx: 950-0433-vc4-drm-vc4_plane-Remove-subpixel-positioning-check.patch bcm27xx: 950-0435-drm-vc4-Correct-pixel-order-for-DSI0.patch bcm27xx: 950-0436-drm-vc4-Register-dsi0-as-the-correct-vc4-encoder-typ.patch bcm27xx: 950-0437-drm-vc4-Fix-dsi0-interrupt-support.patch bcm27xx: 950-0438-drm-vc4-Add-correct-stop-condition-to-vc4_dsi_encode.patch bcm27xx: 950-0443-drm-vc4-Fix-timings-for-interlaced-modes.patch bcm27xx: 950-0445-drm-vc4-Fix-margin-calculations-for-the-right-bottom.patch bcm27xx: 950-0475-drm-vc4-Reset-HDMI-MISC_CONTROL-register.patch bcm27xx: 950-0476-drm-vc4-Release-workaround-buffer-and-DMA-in-error-p.patch bcm27xx: 950-0477-drm-vc4-Correct-DSI-divider-calculations.patch bcm27xx: 950-0664-drm-vc4-dsi-Correct-max-divider-to-255-not-7.patch bcm53xx: 072-next-ARM_dts_BCM53015-add-mr26.patch mediatek: 920-linux-next-dts-mt7622-bpi-r64-fix-wps-button.patch Manually rebased following patches: bcm27xx: 950-0004-drm-vc4-hdmi-Remove-the-DDC-probing-for-status-detec.patch bcm27xx: 950-0700-net-phy-lan87xx-Decrease-phy-polling-rate.patch bcm27xx: 950-0711-drm-vc4-Rename-bridge-to-out_bridge.patch bcm27xx: 950-0713-drm-vc4-Remove-splitting-the-bridge-chain-from-the-d.patch bcm27xx: 950-0715-drm-vc4-Convert-vc4_dsi-to-using-a-bridge-instead-of.patch bcm27xx: 950-0787-vc4-drm-vc4_plane-Keep-fractional-source-coords-insi.patch bcm27xx: 950-0914-mmc-block-Don-t-do-single-sector-reads-during-recove.patch Runtime tested on turris-omnia and glinet-b1300. Tested-by: John Audia <therealgraysky@proton.me> [bcm2711/RPi4B, mt7622/RT3200] Signed-off-by: Petr Štetiar <ynezz@true.cz>
49 lines
1.6 KiB
Diff
49 lines
1.6 KiB
Diff
From b5a2faf6deb6e7accec2c121840a72bdf6e97b4c Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Wed, 23 Feb 2022 15:36:56 +0000
|
|
Subject: [PATCH] drm/panel: Add prepare_upstream_first flag to
|
|
drm_panel
|
|
|
|
Mapping to the drm_bridge flag pre_enable_upstream_first,
|
|
add a new flag prepare_upstream_first to drm_panel to allow
|
|
the panel driver to request that the upstream bridge should
|
|
be pre_enabled before the panel prepare.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/gpu/drm/bridge/panel.c | 3 +++
|
|
include/drm/drm_panel.h | 10 ++++++++++
|
|
2 files changed, 13 insertions(+)
|
|
|
|
--- a/drivers/gpu/drm/bridge/panel.c
|
|
+++ b/drivers/gpu/drm/bridge/panel.c
|
|
@@ -226,6 +226,9 @@ struct drm_bridge *drm_panel_bridge_add_
|
|
panel_bridge->bridge.ops = DRM_BRIDGE_OP_MODES;
|
|
panel_bridge->bridge.type = connector_type;
|
|
|
|
+ panel_bridge->bridge.pre_enable_upstream_first =
|
|
+ panel->prepare_upstream_first;
|
|
+
|
|
drm_bridge_add(&panel_bridge->bridge);
|
|
|
|
return &panel_bridge->bridge;
|
|
--- a/include/drm/drm_panel.h
|
|
+++ b/include/drm/drm_panel.h
|
|
@@ -179,6 +179,16 @@ struct drm_panel {
|
|
* Panel entry in registry.
|
|
*/
|
|
struct list_head list;
|
|
+
|
|
+ /**
|
|
+ * @prepare_upstream_first:
|
|
+ *
|
|
+ * The upstream controller should be prepared first, before the prepare
|
|
+ * for the panel is called. This is largely required for DSI panels
|
|
+ * where the DSI host controller should be initialised to LP-11 before
|
|
+ * the panel is powered up.
|
|
+ */
|
|
+ bool prepare_upstream_first;
|
|
};
|
|
|
|
void drm_panel_init(struct drm_panel *panel, struct device *dev,
|