summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dc.h
diff options
context:
space:
mode:
authorDavid Francis2018-11-13 16:37:16 +0100
committerAlex Deucher2019-01-14 21:04:38 +0100
commitf284975ef2bcec6eb5ab51f61ea67f460ca49a03 (patch)
tree958b4b7fd7165b19283b5d5ec5b5747bf98beb66 /drivers/gpu/drm/amd/display/dc/dc.h
parentdrm/amd/display: add stream ID and otg instance in dc_stream_state (diff)
downloadkernel-qcow2-linux-f284975ef2bcec6eb5ab51f61ea67f460ca49a03.tar.gz
kernel-qcow2-linux-f284975ef2bcec6eb5ab51f61ea67f460ca49a03.tar.xz
kernel-qcow2-linux-f284975ef2bcec6eb5ab51f61ea67f460ca49a03.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
index da08c7122497..c150597962f6 100644
--- a/drivers/gpu/drm/amd/display/dc/dc.h
+++ b/drivers/gpu/drm/amd/display/dc/dc.h
@@ -749,6 +749,9 @@ void dc_set_power_state(
struct dc *dc,
enum dc_acpi_cm_power_state power_state);
void dc_resume(struct dc *dc);
+unsigned int dc_get_current_backlight_pwm(struct dc *dc);
+unsigned int dc_get_target_backlight_pwm(struct dc *dc);
+
bool dc_is_dmcu_initialized(struct dc *dc);
#endif /* DC_INTERFACE_H_ */