FROMLIST: drm/rockchip: cdn-dp: add cdn DP support for rk3399
authorChris Zhong <zyw@rock-chips.com>
Tue, 22 Nov 2016 20:50:05 +0000 (15:50 -0500)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 20 Dec 2016 11:51:13 +0000 (19:51 +0800)
commitcb22a964b460f8e0eda4b43025299da5231c0ace
tree7dc2aeb74e5b0b4970c4091441976b3ef18c7c72
parent003406c483b6daf4d9218681ed3307b456f2edf8
FROMLIST: drm/rockchip: cdn-dp: add cdn DP support for rk3399

Add support for cdn DP controller which is embedded in the rk3399
SoCs. The DP is compliant with DisplayPort Specification,
Version 1.3, This IP is compatible with the rockchip type-c PHY IP.
There is a uCPU in DP controller, it need a firmware to work,
please put the firmware file to /lib/firmware/rockchip/dptx.bin. The
uCPU in charge of aux communication and link training, the host use
mailbox to communicate with the ucpu.
The dclk pin_pol of vop must not be invert for DP.

Change-Id: I64aee564f782db9943a92ca07cb20e2111d7921f
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
[seanpaul fixed up some races between the worker and modeset]
[seanpaul squashed ~15 commits from chromium.org gerrit]
Signed-off-by: Sean Paul <seanpaul@chromium.org>
[groeck fixed compilation errors when building as module]
Signed-off-by: Guenter Roeck <groeck@chromium.org>
(am from https://patchwork.kernel.org/patch/9442143)
drivers/gpu/drm/rockchip/Kconfig
drivers/gpu/drm/rockchip/Makefile
drivers/gpu/drm/rockchip/cdn-dp-core.c [new file with mode: 0644]
drivers/gpu/drm/rockchip/cdn-dp-core.h [new file with mode: 0644]
drivers/gpu/drm/rockchip/cdn-dp-reg.c [new file with mode: 0644]
drivers/gpu/drm/rockchip/cdn-dp-reg.h [new file with mode: 0644]
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
drivers/gpu/drm/rockchip/rockchip_vop_reg.c