drm/kmb: Enable LCD DMA for low TVDDCV
authorEdmund Dea <edmund.j.dea@intel.com>
Tue, 25 Aug 2020 21:51:17 +0000 (14:51 -0700)
committerAnitha Chrisanthus <anitha.chrisanthus@intel.com>
Thu, 29 Jul 2021 18:28:48 +0000 (11:28 -0700)
commit0aab5dce395636eddf4e5f33eba88390328a95b4
treeb0e1318e48dedc8d0c37ae9c0e3547a04be8c992
parent8ee18e769dd621104fecad584c84ec3c4c9ef3fa
drm/kmb: Enable LCD DMA for low TVDDCV

There's an undocumented dependency between LCD layer enable bits [2-5]
and the AXI pipelined read enable bit [28] in the LCD_CONTROL register.
The proper order of operation is:

1) Clear AXI pipelined read enable bit
2) Set LCD layers
3) Set AXI pipelined read enable bit

With this update, LCD can start DMA when TVDDCV is reduced down to 700mV.

Fixes: 7f7b96a8a0a1 ("drm/kmb: Add support for KeemBay Display")
Signed-off-by: Edmund Dea <edmund.j.dea@intel.com>
Signed-off-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210728003126.1425028-1-anitha.chrisanthus@intel.com
drivers/gpu/drm/kmb/kmb_drv.c
drivers/gpu/drm/kmb/kmb_plane.c