mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
drm/rockchip: vop2: add aclk info to dri summary
VOP aclk freq is very important info for our debug, so add it to drm dri summary. Signed-off-by: Sandy Huang <hjc@rock-chips.com> Change-Id: I197e64104c49bd62d85d5dba4b0c4e1763fd62e2
This commit is contained in:
@@ -7202,6 +7202,7 @@ static void vop2_dump_connector_on_crtc(struct drm_crtc *crtc, struct seq_file *
|
||||
static int vop2_crtc_debugfs_dump(struct drm_crtc *crtc, struct seq_file *s)
|
||||
{
|
||||
struct vop2_video_port *vp = to_vop2_video_port(crtc);
|
||||
struct vop2 *vop2 = vp->vop2;
|
||||
struct drm_crtc_state *crtc_state = crtc->state;
|
||||
struct drm_display_mode *mode = &crtc->state->adjusted_mode;
|
||||
struct rockchip_crtc_state *state = to_rockchip_crtc_state(crtc->state);
|
||||
@@ -7225,8 +7226,9 @@ static int vop2_crtc_debugfs_dump(struct drm_crtc *crtc, struct seq_file *s)
|
||||
DEBUG_PRINT(" Display mode: %dx%d%s%d\n",
|
||||
mode->hdisplay, mode->vdisplay, interlaced ? "i" : "p",
|
||||
drm_mode_vrefresh(mode));
|
||||
DEBUG_PRINT("\tclk[%d] real_clk[%d] type[%x] flag[%x]\n",
|
||||
mode->clock, mode->crtc_clock, mode->type, mode->flags);
|
||||
DEBUG_PRINT("\tdclk[%d kHz] real_dclk[%d kHz] aclk[%ld kHz] type[%x] flag[%x]\n",
|
||||
mode->clock, mode->crtc_clock, clk_get_rate(vop2->aclk) / 1000,
|
||||
mode->type, mode->flags);
|
||||
DEBUG_PRINT("\tH: %d %d %d %d\n", mode->hdisplay, mode->hsync_start,
|
||||
mode->hsync_end, mode->htotal);
|
||||
DEBUG_PRINT("\tV: %d %d %d %d\n", mode->vdisplay, mode->vsync_start,
|
||||
|
||||
Reference in New Issue
Block a user