Skip to content

Commit 1a0f7ed

Browse files
zywang33Mark Yao
authored andcommitted
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. 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>
1 parent 5a2c920 commit 1a0f7ed

9 files changed

Lines changed: 2842 additions & 3 deletions

File tree

‎drivers/gpu/drm/rockchip/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ config ROCKCHIP_ANALOGIX_DP
2121
for the Analogix Core DP driver. If you want to enable DP
2222
on RK3288 based SoC, you should selet this option.
2323

24+
config ROCKCHIP_CDN_DP
25+
tristate "Rockchip cdn DP"
26+
depends on DRM_ROCKCHIP
27+
select SND_SOC_HDMI_CODEC if SND_SOC
28+
help
29+
This selects support for Rockchip SoC specific extensions
30+
for the cdn DP driver. If you want to enable Dp on
31+
RK3399 based SoC, you should select this
32+
option.
33+
2434
config ROCKCHIP_DW_HDMI
2535
tristate "Rockchip specific extensions for Synopsys DW HDMI"
2636
depends on DRM_ROCKCHIP

‎drivers/gpu/drm/rockchip/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ rockchipdrm-y := rockchip_drm_drv.o rockchip_drm_fb.o \
77
rockchipdrm-$(CONFIG_DRM_FBDEV_EMULATION) += rockchip_drm_fbdev.o
88

99
obj-$(CONFIG_ROCKCHIP_ANALOGIX_DP) += analogix_dp-rockchip.o
10+
obj-$(CONFIG_ROCKCHIP_CDN_DP) += cdn-dp.o
11+
cdn-dp-objs := cdn-dp-core.o cdn-dp-reg.o
1012
obj-$(CONFIG_ROCKCHIP_DW_HDMI) += dw_hdmi-rockchip.o
1113
obj-$(CONFIG_ROCKCHIP_DW_MIPI_DSI) += dw-mipi-dsi.o
1214
obj-$(CONFIG_ROCKCHIP_INNO_HDMI) += inno_hdmi.o

0 commit comments

Comments
 (0)