]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ebc57f47c67ec89ca7ee4977ec63844dd00a545
tree2adab2653dde30899b3d707c0dd43b894ce21e89
parent4d0fdaae64b55542f118cda22b482db1a766244e
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