caf2ae4867
For the eDP case we can support using aux-bus on MediaTek DP: this gives us the possibility to declare our panel as generic "panel-edp" which will automatically configure the timings and available modes via the EDID that we read from it. To do this, move the panel parsing at the end of the probe function so that the hardware is initialized beforehand and also initialize the DPTX AUX block and power both on as, when we populate the aux-bus, the panel driver will trigger an EDID read to perform panel detection. Last but not least, since now the AUX transfers can happen in the separated aux-bus, it was necessary to add an exclusion for the cable_plugged_in check in `mtk_dp_aux_transfer()` and the easiest way to do this is to simply ignore checking that when the bridge type is eDP. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Tested-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> Reviewed-by: CK Hu <ck.hu@mediatek.com> Link: https://patchwork.kernel.org/project/dri-devel/patch/20230725073234.55892-10-angelogioacchino.delregno@collabora.com/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config DRM_MEDIATEK
|
|
tristate "DRM Support for Mediatek SoCs"
|
|
depends on DRM
|
|
depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST)
|
|
depends on COMMON_CLK
|
|
depends on HAVE_ARM_SMCCC
|
|
depends on OF
|
|
depends on MTK_MMSYS
|
|
select DRM_KMS_HELPER
|
|
select DRM_MIPI_DSI
|
|
select DRM_PANEL
|
|
select MEMORY
|
|
select MTK_SMI
|
|
select PHY_MTK_MIPI_DSI
|
|
select VIDEOMODE_HELPERS
|
|
help
|
|
Choose this option if you have a Mediatek SoCs.
|
|
The module will be called mediatek-drm
|
|
This driver provides kernel mode setting and
|
|
buffer management to userspace.
|
|
|
|
config DRM_MEDIATEK_DP
|
|
tristate "DRM DPTX Support for MediaTek SoCs"
|
|
depends on DRM_MEDIATEK
|
|
select PHY_MTK_DP
|
|
select DRM_DISPLAY_HELPER
|
|
select DRM_DISPLAY_DP_HELPER
|
|
select DRM_DP_AUX_BUS
|
|
help
|
|
DRM/KMS Display Port driver for MediaTek SoCs.
|
|
|
|
config DRM_MEDIATEK_HDMI
|
|
tristate "DRM HDMI Support for Mediatek SoCs"
|
|
depends on DRM_MEDIATEK
|
|
select SND_SOC_HDMI_CODEC if SND_SOC
|
|
select PHY_MTK_HDMI
|
|
help
|
|
DRM/KMS HDMI driver for Mediatek SoCs
|