drm/msm/mdp5: Prepare Layer Mixers for source split
authorArchit Taneja <architt@codeaurora.org>
Thu, 23 Mar 2017 10:28:12 +0000 (15:58 +0530)
committerRob Clark <robdclark@gmail.com>
Sat, 8 Apr 2017 10:59:36 +0000 (06:59 -0400)
commited78560dc4ee352a6f991ef87b2747bdc90297a3
treea508e8171f08d0a703f94672f7f038187c1208b7
parentc26b4f6cfb2774d13f9ae41cbaaf30f30ac417c6
drm/msm/mdp5: Prepare Layer Mixers for source split

In order to enable Source Split in HW, we need to add/modify
a few LM register configurations:

- Configure the LM width to be half the mode width, so that
  each LM manages one half of the scanout.
- Tell the 'right' LM that it is configured to be the 'right'
  LM in source split mode.
- Since we now have 2 places where REG_MDP5_LM_BLEND_COLOR_OUT is
  configured, do a read-update-store for the register instead of
  directly writing a value to it.

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