mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
20ea6adbf1
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
46 lines
1.7 KiB
Diff
46 lines
1.7 KiB
Diff
From e83ac8f131b0f691e2a35866fa67b484c7256a49 Mon Sep 17 00:00:00 2001
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
Date: Wed, 26 May 2021 16:07:01 +0200
|
|
Subject: [PATCH] drm/vc4: Make vc4_crtc_get_encoder public
|
|
|
|
We'll need that function in vc4_kms to compute the core clock rate
|
|
requirements.
|
|
|
|
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_crtc.c | 8 ++++----
|
|
drivers/gpu/drm/vc4/vc4_drv.h | 5 +++++
|
|
2 files changed, 9 insertions(+), 4 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_crtc.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_crtc.c
|
|
@@ -281,10 +281,10 @@ static u32 vc4_crtc_get_fifo_full_level_
|
|
* allows drivers to push pixels to more than one encoder from the
|
|
* same CRTC.
|
|
*/
|
|
-static struct drm_encoder *vc4_get_crtc_encoder(struct drm_crtc *crtc,
|
|
- struct drm_atomic_state *state,
|
|
- struct drm_connector_state *(*get_state)(struct drm_atomic_state *state,
|
|
- struct drm_connector *connector))
|
|
+struct drm_encoder *vc4_get_crtc_encoder(struct drm_crtc *crtc,
|
|
+ struct drm_atomic_state *state,
|
|
+ struct drm_connector_state *(*get_state)(struct drm_atomic_state *state,
|
|
+ struct drm_connector *connector))
|
|
{
|
|
struct drm_connector *connector;
|
|
struct drm_connector_list_iter conn_iter;
|
|
--- a/drivers/gpu/drm/vc4/vc4_drv.h
|
|
+++ b/drivers/gpu/drm/vc4/vc4_drv.h
|
|
@@ -544,6 +544,11 @@ vc4_crtc_to_vc4_pv_data(const struct vc4
|
|
return container_of(data, struct vc4_pv_data, base);
|
|
}
|
|
|
|
+struct drm_encoder *vc4_get_crtc_encoder(struct drm_crtc *crtc,
|
|
+ struct drm_atomic_state *state,
|
|
+ struct drm_connector_state *(*get_state)(struct drm_atomic_state *state,
|
|
+ struct drm_connector *connector));
|
|
+
|
|
struct vc4_crtc_state {
|
|
struct drm_crtc_state base;
|
|
/* Dlist area for this CRTC configuration. */
|