Skip to content

Commit 4caa87b

Browse files
Algea Caorkhuangtao
authored andcommitted
drm: rockchip: rk628: post_process: Enable y2r when input mode clk is 594Mhz
Because hdmirx phy only support yuv420 when input mode is 4K-60Hz, y2r should be enabled. Change-Id: I1eca2c6783c63e07cb13b617bb32ff81f2229c7d Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
1 parent 40dbf73 commit 4caa87b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/rockchip/rk628/rk628_post_process.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ static void rk628_post_process_bridge_mode_set(struct drm_bridge *bridge,
269269
drm_mode_copy(&pp->dst_mode, &rk628->dst_mode);
270270
else
271271
drm_mode_copy(&pp->dst_mode, &pp->src_mode);
272+
273+
/* hdmirx 4k-60Hz mode only support yuv420 */
274+
if (pp->src_mode.clock == 594000)
275+
regmap_write(pp->grf, GRF_CSC_CTRL_CON, SW_Y2R_EN(1));
272276
}
273277

274278
static int rk628_post_process_bridge_attach(struct drm_bridge *bridge)

0 commit comments

Comments
 (0)