mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
drm/vc4: Add all the HDMI registers into the debugfs dumps
The vc5 HDMI registers hadn't been added into the debugfs register sets, therefore weren't dumped on request. Add them in. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
This commit is contained in:
committed by
popcornmix
parent
cc825a2dbc
commit
b467d7109e
@@ -401,6 +401,13 @@ static int vc4_hdmi_debugfs_regs(struct seq_file *m, void *unused)
|
||||
|
||||
drm_print_regset32(&p, &vc4_hdmi->hdmi_regset);
|
||||
drm_print_regset32(&p, &vc4_hdmi->hd_regset);
|
||||
drm_print_regset32(&p, &vc4_hdmi->cec_regset);
|
||||
drm_print_regset32(&p, &vc4_hdmi->csc_regset);
|
||||
drm_print_regset32(&p, &vc4_hdmi->dvp_regset);
|
||||
drm_print_regset32(&p, &vc4_hdmi->intr2_regset);
|
||||
drm_print_regset32(&p, &vc4_hdmi->phy_regset);
|
||||
drm_print_regset32(&p, &vc4_hdmi->ram_regset);
|
||||
drm_print_regset32(&p, &vc4_hdmi->rm_regset);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -2185,6 +2192,7 @@ static int vc5_hdmi_init_resources(struct vc4_hdmi *vc4_hdmi)
|
||||
struct platform_device *pdev = vc4_hdmi->pdev;
|
||||
struct device *dev = &pdev->dev;
|
||||
struct resource *res;
|
||||
int ret;
|
||||
|
||||
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "hdmi");
|
||||
if (!res)
|
||||
@@ -2283,6 +2291,42 @@ static int vc5_hdmi_init_resources(struct vc4_hdmi *vc4_hdmi)
|
||||
return PTR_ERR(vc4_hdmi->reset);
|
||||
}
|
||||
|
||||
ret = vc4_hdmi_build_regset(vc4_hdmi, &vc4_hdmi->hdmi_regset, VC4_HDMI);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = vc4_hdmi_build_regset(vc4_hdmi, &vc4_hdmi->hd_regset, VC4_HD);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = vc4_hdmi_build_regset(vc4_hdmi, &vc4_hdmi->cec_regset, VC5_CEC);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = vc4_hdmi_build_regset(vc4_hdmi, &vc4_hdmi->csc_regset, VC5_CSC);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = vc4_hdmi_build_regset(vc4_hdmi, &vc4_hdmi->dvp_regset, VC5_DVP);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = vc4_hdmi_build_regset(vc4_hdmi, &vc4_hdmi->phy_regset, VC5_PHY);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = vc4_hdmi_build_regset(vc4_hdmi, &vc4_hdmi->ram_regset, VC5_RAM);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = vc4_hdmi_build_regset(vc4_hdmi, &vc4_hdmi->rm_regset, VC5_RM);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = vc4_hdmi_build_regset(vc4_hdmi, &vc4_hdmi->intr2_regset, VC5_INTR2);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -167,8 +167,17 @@ struct vc4_hdmi {
|
||||
|
||||
struct reset_control *reset;
|
||||
|
||||
/* Common debugfs regset */
|
||||
struct debugfs_regset32 hdmi_regset;
|
||||
struct debugfs_regset32 hd_regset;
|
||||
/* VC5 debugfs regset */
|
||||
struct debugfs_regset32 cec_regset;
|
||||
struct debugfs_regset32 csc_regset;
|
||||
struct debugfs_regset32 dvp_regset;
|
||||
struct debugfs_regset32 intr2_regset;
|
||||
struct debugfs_regset32 phy_regset;
|
||||
struct debugfs_regset32 ram_regset;
|
||||
struct debugfs_regset32 rm_regset;
|
||||
};
|
||||
|
||||
static inline struct vc4_hdmi *
|
||||
|
||||
Reference in New Issue
Block a user