On Mon, 19 Sep 2016, "Lee, Shawn C" wrote:
> PWM was enabled in bios. i915 driver will save max duty to
> panel->backlight.max.
> So *_hz_to_pwm will not be called if backlight.max not zero.
And what difference does it make?
BR,
Jani.
>
> pch_ctl2 = I915_READ(BLC_PWM_PCH_CTL2);
>
PWM was enabled in bios. i915 driver will save max duty to panel->backlight.max.
So *_hz_to_pwm will not be called if backlight.max not zero.
pch_ctl2 = I915_READ(BLC_PWM_PCH_CTL2);
panel->backlight.max = pch_ctl2 >> 16;
if (!panel->backlight.max)
panel->b
This will also be needed later on when setting up the alternate
increment in backlight enable.
Cc: Shawn Lee
Signed-off-by: Jani Nikula
---
drivers/gpu/drm/i915/intel_drv.h | 1 +
drivers/gpu/drm/i915/intel_panel.c | 14 +++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff