From 7e066794d2ea860f4199fd67549080de17b6b852 Mon Sep 17 00:00:00 2001 From: Tarun Vyas Date: Thu, 4 Oct 2018 14:50:23 -0700 Subject: tools: Add a simple tool to read/write/decode dpcd registers This tool serves as a wrapper around the constructs provided by the drm_dpcd_aux_dev kernel module by working on the /dev/drm_dp_aux[n] devices created by the kernel module. It supports reading and writing dpcd registers on the connected aux channels. In the follow-up patch, support for decoding these registers will be added to facilate debugging panel related issues. v2: (Fixes by Rodrigo but no functional changes yet): - Indentations, Typo, Missed spaces - Removing mentioning to decode and spec that is not implemented yet. - Add Makefile.sources back - Missed s/printf/igt_warn v3: - Address DK's review comments from v2 above. - Squash Rodrigo's file handling unification patch. - Make count, offset and device id optional. v4: - Better error handling and refactoring. Suggested-by: Dhinakaran Pandiyan Signed-off-by: Tarun Vyas Signed-off-by: Rodrigo Vivi Reviewed-by: Dhinakaran Pandiyan --- tools/meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/meson.build') diff --git a/tools/meson.build b/tools/meson.build index e4517d66..79f36aa9 100644 --- a/tools/meson.build +++ b/tools/meson.build @@ -36,6 +36,7 @@ tools_progs = [ 'intel_watermark', 'intel_gem_info', 'intel_gvtg_test', + 'dpcd_reg', ] tool_deps = igt_deps -- cgit v1.2.3