projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b0c4b7
)
drm/rockchip: vop: test for P{H,V}SYNC
author
John Keeping
<
[email protected]
>
Fri, 24 Feb 2017 12:55:03 +0000
(12:55 +0000)
committer
Sean Paul
<
[email protected]
>
Wed, 1 Mar 2017 19:48:58 +0000
(14:48 -0500)
When connected to the MIPI DSI output, we need to use N{H,V}SYNC for the
internal connection but these flags are meaningless for DSI panels.
Switch the test so that we do not set the P{H,V}SYNC bits unless the
mode requires it.
Signed-off-by: John Keeping <
[email protected]
>
Reviewed-by: Mark Yao <
[email protected]
>
Reviewed-by: Sean Paul <
[email protected]
>
[seanpaul resolved conflict using macros instead of hardcoded values]
Signed-off-by: Sean Paul <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
index 7c2e7c481333fcaecd60eff896c91ea966a71bd6..94d7b7327ff7e363f4f4d25ded0d63e628820038 100644
(file)
--- a/
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
+++ b/
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
@@
-932,10
+932,10
@@
static void vop_crtc_enable(struct drm_crtc *crtc)
}
pin_pol = BIT(DCLK_INVERT);
- pin_pol |= (adjusted_mode->flags & DRM_MODE_FLAG_
N
HSYNC) ?
-
0 : BIT(HSYNC_POSITIVE)
;
- pin_pol |= (adjusted_mode->flags & DRM_MODE_FLAG_
N
VSYNC) ?
-
0 : BIT(VSYNC_POSITIVE)
;
+ pin_pol |= (adjusted_mode->flags & DRM_MODE_FLAG_
P
HSYNC) ?
+
BIT(HSYNC_POSITIVE) : 0
;
+ pin_pol |= (adjusted_mode->flags & DRM_MODE_FLAG_
P
VSYNC) ?
+
BIT(VSYNC_POSITIVE) : 0
;
VOP_CTRL_SET(vop, pin_pol, pin_pol);
switch (s->output_type) {