projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
783195e
)
drm/sun4i: tcon: Pass encoder to RGB setup function
author
Paul Kocialkowski
<contact@paulk.fr>
Wed, 7 Nov 2018 18:18:36 +0000
(19:18 +0100)
committer
Maxime Ripard
<maxime.ripard@bootlin.com>
Fri, 9 Nov 2018 07:31:21 +0000
(08:31 +0100)
Passing the encoder to the TCON RGB setup functions allows accessing the
connector from the encoder directly instead of relying on the panel.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20181107181843.27628-2-contact@paulk.fr
drivers/gpu/drm/sun4i/sun4i_tcon.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/sun4i/sun4i_tcon.c
b/drivers/gpu/drm/sun4i/sun4i_tcon.c
index
f949287
..
5e1f762
100644
(file)
--- a/
drivers/gpu/drm/sun4i/sun4i_tcon.c
+++ b/
drivers/gpu/drm/sun4i/sun4i_tcon.c
@@
-478,6
+478,7
@@
static void sun4i_tcon0_mode_set_lvds(struct sun4i_tcon *tcon,
}
static void sun4i_tcon0_mode_set_rgb(struct sun4i_tcon *tcon,
+ const struct drm_encoder *encoder,
const struct drm_display_mode *mode)
{
unsigned int bp, hsync, vsync;
@@
-684,7
+685,7
@@
void sun4i_tcon_mode_set(struct sun4i_tcon *tcon,
sun4i_tcon0_mode_set_lvds(tcon, encoder, mode);
break;
case DRM_MODE_ENCODER_NONE:
- sun4i_tcon0_mode_set_rgb(tcon, mode);
+ sun4i_tcon0_mode_set_rgb(tcon,
encoder,
mode);
sun4i_tcon_set_mux(tcon, 0, encoder);
break;
case DRM_MODE_ENCODER_TVDAC: