]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add backlight pwm debugfs
authorDavid Francis <David.Francis@amd.com>
Tue, 13 Nov 2018 15:37:16 +0000 (10:37 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:38 +0000 (15:04 -0500)
commitd7756da2e1edc92c7a0fbe40143458f3998b977d
tree958b4b7fd7165b19283b5d5ec5b5747bf98beb66
parent41bdae0eff918150ca7a4947b90d2dcedd54baf8
drm/amd/display: Add backlight pwm debugfs

[Why]
ABM enablement testing can be automated if a way of reading
target and current hardware backlight is available

[How]
Expand debugfs interface with two new entries.
Hook directly into dc interface.  Units are as
a fraction of 0x1000 = 100%

Use the built-in amdgpu function for creating
read-only debugfs files

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h