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)
commitf284975ef2bcec6eb5ab51f61ea67f460ca49a03
tree958b4b7fd7165b19283b5d5ec5b5747bf98beb66
parent04a789bef315a3ed64f296fab21be3933405ea43
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