drm/msm/mdp5: Make the intf connection in config module
authorStephane Viau <sviau@codeaurora.org>
Fri, 13 Mar 2015 19:49:34 +0000 (15:49 -0400)
committerRob Clark <robdclark@gmail.com>
Wed, 1 Apr 2015 23:29:34 +0000 (19:29 -0400)
commit67ac0a2d6994fef77a611106fa7f6fcc58f4bb8d
tree187a12bc1a31e23b50863acaa356c230de45015d
parent389b09a1822db2bf5050060acc63611ea6c4670d
drm/msm/mdp5: Make the intf connection in config module

Up until now, we assume that eDP is tight to intf_0 and HDMI to
intf_3. This information shall actually come from the mdp5_cfg
module since it can change from one chip to another.

v2: rename macro to mdp5_cfg_intf_is_virtual() [pointed by Archit]
v3: add sanity check before writing in INTF_TIMING_ENGINE_EN registers

Signed-off-by: Stephane Viau <sviau@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c