drm/hisilicon/hibmc: Add colorbar-cfg feature and its debugfs file
authorBaihan Li <libaihan@huawei.com>
Mon, 31 Mar 2025 07:42:09 +0000 (15:42 +0800)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Fri, 11 Apr 2025 11:42:12 +0000 (14:42 +0300)
commit2f6182616cfdb154e2ecfe9554bb814b8a6378e9
treeb6dfd5d85735ddf96d99c465768644679435f74d
parentbd1c935811ae6bd112321c50ed83444eca4facc8
drm/hisilicon/hibmc: Add colorbar-cfg feature and its debugfs file

DP controller can support generating a color bar signal over the
DisplayPort interface. This can be useful to check for possible DDR
or GPU problems, as the signal generator resides completely in the DP
block. Add debugfs file that controls colorbar generator.

echo: config the color bar register to display
cat: print the color bar configuration

Signed-off-by: Baihan Li <libaihan@huawei.com>
Signed-off-by: Yongbang Shi <shiyongbang@huawei.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20250331074212.3370287-7-shiyongbang@huawei.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/hisilicon/hibmc/Makefile
drivers/gpu/drm/hisilicon/hibmc/dp/dp_hw.c
drivers/gpu/drm/hisilicon/hibmc/dp/dp_hw.h
drivers/gpu/drm/hisilicon/hibmc/dp/dp_reg.h
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_dp.c
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h