mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
2d4f7bdafd
Add the ROCKCHIP DSI controller driver that uses the Synopsys DesignWare MIPI DSI host controller bridge and remove the old separate one. changes: v2: add err_pllref, remove unnecessary encoder.enable & disable correct spelling mistakes v3: call dw_mipi_dsi_unbind() in dw_mipi_dsi_rockchip_unbind() fix typo, use of_device_get_match_data(), change some bind() logic into probe() add 'dev_set_drvdata()' v4: return -EINVAL when can not get best_freq add a clarifying comment when get vco add review tag v5: keep our power domain enabled while touching GRF v6: change func name dw_mipi_encoder_disable to dw_mipi_dsi_encoder_disable v7: none v8: Heiko add Archit's Review tag adapt to recent changes in the original rockchip-dsi driver beautify grf-handling split hw-setup (resources, dsi-host) from bind into probe v2-new: Heiko add SPDX header instead of license blurb drop old versioning to not confuse people v3-new: Heiko include ordering moved hwaccess from mode_set to enable callback move pllref_clk enablement to bind (needed by bridge mode_set->lane_mbps) v4-new: Heiko rebase against recent rockchip-dsi changes move to call component_add in the new glue host-attach Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com> Signed-off-by: Brian Norris <briannorris@chromium.org> Reviewed-by: Brian Norris <briannorris@chromium.org> Reviewed-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Archit Taneja <architt@codeaurora.org> Reviewed-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181001123845.11818-6-heiko@sntech.de
81 lines
2.7 KiB
Plaintext
81 lines
2.7 KiB
Plaintext
config DRM_ROCKCHIP
|
|
tristate "DRM Support for Rockchip"
|
|
depends on DRM && ROCKCHIP_IOMMU
|
|
select DRM_GEM_CMA_HELPER
|
|
select DRM_KMS_HELPER
|
|
select DRM_PANEL
|
|
select VIDEOMODE_HELPERS
|
|
select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
|
|
select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
|
|
select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
|
|
select DRM_RGB if ROCKCHIP_RGB
|
|
select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC
|
|
help
|
|
Choose this option if you have a Rockchip soc chipset.
|
|
This driver provides kernel mode setting and buffer
|
|
management to userspace. This driver does not provide
|
|
2D or 3D acceleration; acceleration is performed by other
|
|
IP found on the SoC.
|
|
|
|
if DRM_ROCKCHIP
|
|
|
|
config ROCKCHIP_ANALOGIX_DP
|
|
bool "Rockchip specific extensions for Analogix DP driver"
|
|
help
|
|
This selects support for Rockchip SoC specific extensions
|
|
for the Analogix Core DP driver. If you want to enable DP
|
|
on RK3288 or RK3399 based SoC, you should select this option.
|
|
|
|
config ROCKCHIP_CDN_DP
|
|
bool "Rockchip cdn DP"
|
|
depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m)
|
|
help
|
|
This selects support for Rockchip SoC specific extensions
|
|
for the cdn DP driver. If you want to enable Dp on
|
|
RK3399 based SoC, you should select this
|
|
option.
|
|
|
|
config ROCKCHIP_DW_HDMI
|
|
bool "Rockchip specific extensions for Synopsys DW HDMI"
|
|
help
|
|
This selects support for Rockchip SoC specific extensions
|
|
for the Synopsys DesignWare HDMI driver. If you want to
|
|
enable HDMI on RK3288 or RK3399 based SoC, you should select
|
|
this option.
|
|
|
|
config ROCKCHIP_DW_MIPI_DSI
|
|
bool "Rockchip specific extensions for Synopsys DW MIPI DSI"
|
|
help
|
|
This selects support for Rockchip SoC specific extensions
|
|
for the Synopsys DesignWare HDMI driver. If you want to
|
|
enable MIPI DSI on RK3288 or RK3399 based SoC, you should
|
|
select this option.
|
|
|
|
config ROCKCHIP_INNO_HDMI
|
|
bool "Rockchip specific extensions for Innosilicon HDMI"
|
|
help
|
|
This selects support for Rockchip SoC specific extensions
|
|
for the Innosilicon HDMI driver. If you want to enable
|
|
HDMI on RK3036 based SoC, you should select this option.
|
|
|
|
config ROCKCHIP_LVDS
|
|
bool "Rockchip LVDS support"
|
|
depends on DRM_ROCKCHIP
|
|
depends on PINCTRL && OF
|
|
help
|
|
Choose this option to enable support for Rockchip LVDS controllers.
|
|
Rockchip rk3288 SoC has LVDS TX Controller can be used, and it
|
|
support LVDS, rgb, dual LVDS output mode. say Y to enable its
|
|
driver.
|
|
|
|
config ROCKCHIP_RGB
|
|
bool "Rockchip RGB support"
|
|
depends on DRM_ROCKCHIP
|
|
depends on PINCTRL
|
|
help
|
|
Choose this option to enable support for Rockchip RGB output.
|
|
Some Rockchip CRTCs, like rv1108, can directly output parallel
|
|
and serial RGB format to panel or connect to a conversion chip.
|
|
say Y to enable its driver.
|
|
endif
|