drm/amd/display: Add switch for Fractional PWM on or off
authorAnthony Koo <Anthony.Koo@amd.com>
Thu, 28 Mar 2019 16:39:48 +0000 (12:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Apr 2019 05:19:16 +0000 (00:19 -0500)
commit3be0a0b8501585120f8de68e9077ca143024139b
treea6ef51bdc4c780ca8a5d3a418a51d1483ed5f872
parent93abb05fd5d6f3042320ae3c485b034d7c5e8e54
drm/amd/display: Add switch for Fractional PWM on or off

[Why]
Some LED Driver might not like Fractional PWM especially at extreme
ranges near 0% or 100%.
For example, backlight flashing could be observed.
We want a way to switch fractional PWM on/off either for debug, or
possibly production.

[How]
Add DC code that can send new FW command to enable/disable
fractional PWM.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c