]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/mdp5: Create a separate MDP5 device
authorArchit Taneja <architt@codeaurora.org>
Mon, 30 May 2016 11:06:50 +0000 (16:36 +0530)
committerRob Clark <robdclark@gmail.com>
Sat, 16 Jul 2016 14:08:56 +0000 (10:08 -0400)
commitb0a3f831c35195f308fd5b33fc93e0a8396f59b4
tree7baae7fa7bf7bf90e998a0ce310cf8c7ad9eed8f
parent689b44e15eda20bdf61eb3e3a56bb2cc1df84ad4
drm/msm/mdp5: Create a separate MDP5 device

In order to have a tree-like device hierarchy between MDSS and its
sub-blocks (MDP5, DSI, HDMI, eDP etc), we need to create a separate
device/driver for MDP5. Currently, MDP5 and MDSS are squashed
together are are tied to the top level platform_device, which is
also the one used to create drm_device.

The mdp5_kms_init code is split into two parts. The part where device
resources are allocated are associated with the MDP5 driver's probe,
the rest is executed later when we initialize modeset.

With this change, unlike MDP4, the MDP5 platform_device isn't tied to
the top level drm_device anymore. The top level drm_device is now
associated with a platform device that corresponds to MDSS wrapper
hardware.

Create mdp5_init/destroy funcs that will be used by the MDP5 driver
probe/remove. Use the HW_VERSION register in the MDP5 register address
space. Both the MDSS and MDP VERSION registers give out identical
version info.

The older mdp5_kms_init code is left as is for now, this would be removed
later when we have all the pieces to support the new device hierarchy.

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