drm/i915: Add option to support dynamic backlight via DPCD
authorPuthikorn Voravootivat <puthik@chromium.org>
Thu, 22 Jun 2017 19:03:39 +0000 (12:03 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 23 Jun 2017 10:24:55 +0000 (12:24 +0200)
commitae25eceab616d16a07bcaa434b84463d58a3bdc3
treebc2a401046a2376e4ab210e531175860ad176a9c
parent560a758d39c616f83ac25ff6e0816a49ebe6401c
drm/i915: Add option to support dynamic backlight via DPCD

This patch adds option to enable dynamic backlight for eDP
panel that supports this feature via DPCD register and
set minimum / maximum brightness to 0% and 100% of the
normal brightness.

Signed-off-by: Puthikorn Voravootivat <puthik@chromium.org>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170622190339.142671-4-puthik@chromium.org
drivers/gpu/drm/i915/i915_params.c
drivers/gpu/drm/i915/i915_params.h
drivers/gpu/drm/i915/intel_dp_aux_backlight.c