media: rkisp1: debug: Collect input status by sampling ISP_FLAGS_SHD
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 26 Feb 2022 07:57:09 +0000 (07:57 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 27 Jun 2022 07:36:32 +0000 (08:36 +0100)
commitcbb819c363c572715ddba8ea8a049392629707a4
tree2adab2653dde30899b3d707c0dd43b894ce21e89
parentfd3608fe6bfe7a41cc597faa6498793276f1290e
media: rkisp1: debug: Collect input status by sampling ISP_FLAGS_SHD

The ISP_FLAGS_SHD register exposes the ISP parallel input signals (data
and synchronization) in real time. This can help debugging when the
device doesn't output any image. Sample the register 10000 times with a
1µs delay and expose the result through debugfs.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-debug.c
drivers/media/platform/rockchip/rkisp1/rkisp1-regs.h