Skip to content

Commit 3f68be7

Browse files
committed
drm/meson: Add support for HDMI encoder and DW-HDMI bridge + PHY
The Amlogic Meson GXBB/GXL/GXM SoCs embeds a Synopsys DesignWare HDMI TX Controller with a custom Bridge + PHY around the Controller. This driver makes uses of all the custom PHY plat data callbacks and enables the compatible HDMI modes to be configured as a drm_encoder instance. Acked-by: Daniel Vetter <[email protected]> Signed-off-by: Neil Armstrong <[email protected]>
1 parent 335e371 commit 3f68be7

File tree

5 files changed

+1066
-0
lines changed

5 files changed

+1066
-0
lines changed

drivers/gpu/drm/meson/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ config DRM_MESON
77
select DRM_GEM_CMA_HELPER
88
select VIDEOMODE_HELPERS
99
select REGMAP_MMIO
10+
11+
config DRM_MESON_DW_HDMI
12+
tristate "HDMI Synopsys Controller support for Amlogic Meson Display"
13+
depends on DRM_MESON
14+
default y if DRM_MESON
15+
select DRM_DW_HDMI

drivers/gpu/drm/meson/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ meson-drm-y := meson_drv.o meson_plane.o meson_crtc.o meson_venc_cvbs.o
22
meson-drm-y += meson_viu.o meson_vpp.o meson_venc.o meson_vclk.o meson_canvas.o
33

44
obj-$(CONFIG_DRM_MESON) += meson-drm.o
5+
obj-$(CONFIG_DRM_MESON_DW_HDMI) += meson_dw_hdmi.o

drivers/gpu/drm/meson/meson_drv.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ struct meson_drm {
4747

4848
struct {
4949
unsigned int current_mode;
50+
bool hdmi_repeat;
51+
bool venc_repeat;
52+
bool hdmi_use_enci;
5053
} venc;
5154
};
5255

0 commit comments

Comments
 (0)