]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/mdp5: Create mdp5_hwpipe_mode_set
authorArchit Taneja <architt@codeaurora.org>
Thu, 23 Mar 2017 10:28:09 +0000 (15:58 +0530)
committerRob Clark <robdclark@gmail.com>
Sat, 8 Apr 2017 10:59:35 +0000 (06:59 -0400)
commiteb796ff2f3d01cbe7da239e52b8560029439dcfe
treeb37e5387fc715b1d7042bd3d2906afe244f22de0
parentabc8901b679beb98d4a91e7327ad84ed5de7ee0a
drm/msm/mdp5: Create mdp5_hwpipe_mode_set

Refactor mdp5_plane_mode_set to call mdp5_hwpipe_mode_set. The latter
func takes in only the hwpipe and the parameters that need to be
programmed into the hwpipe registers. All the code that calculates these
parameters is left as is in mdp5_plane_mode_set.

In the future, when we let drm_plane be comprised of 2 hwpipes, this func
allow us to configure each pipe without adding redundant code.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c