mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
drm/amd/display: Implement voltage limitation for dali
[Why] we only want the lowest voltage to be available for dali. [How] Use the get_highest_allowed_voltage_level function to return 0 for dali Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
c4cacce785
commit
d1082e23ee
1 changed files with 4 additions and 0 deletions
|
@ -708,6 +708,10 @@ static void hack_bounding_box(struct dcn_bw_internal_vars *v,
|
||||||
|
|
||||||
unsigned int get_highest_allowed_voltage_level(uint32_t hw_internal_rev)
|
unsigned int get_highest_allowed_voltage_level(uint32_t hw_internal_rev)
|
||||||
{
|
{
|
||||||
|
/* for dali, the highest voltage level we want is 0 */
|
||||||
|
if (ASICREV_IS_DALI(hw_internal_rev))
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* we are ok with all levels */
|
/* we are ok with all levels */
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue