Skip to content

Commit

Permalink
drm/meson: Add support for HDMI encoder and DW-HDMI bridge + PHY
Browse files Browse the repository at this point in the history
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 <daniel.vetter@ffwll.ch>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
  • Loading branch information
superna9999 committed Apr 4, 2017
1 parent 335e371 commit 3f68be7
Show file tree
Hide file tree
Showing 5 changed files with 1,066 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/meson/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ config DRM_MESON
select DRM_GEM_CMA_HELPER
select VIDEOMODE_HELPERS
select REGMAP_MMIO

config DRM_MESON_DW_HDMI
tristate "HDMI Synopsys Controller support for Amlogic Meson Display"
depends on DRM_MESON
default y if DRM_MESON
select DRM_DW_HDMI
1 change: 1 addition & 0 deletions drivers/gpu/drm/meson/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ meson-drm-y := meson_drv.o meson_plane.o meson_crtc.o meson_venc_cvbs.o
meson-drm-y += meson_viu.o meson_vpp.o meson_venc.o meson_vclk.o meson_canvas.o

obj-$(CONFIG_DRM_MESON) += meson-drm.o
obj-$(CONFIG_DRM_MESON_DW_HDMI) += meson_dw_hdmi.o
3 changes: 3 additions & 0 deletions drivers/gpu/drm/meson/meson_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ struct meson_drm {

struct {
unsigned int current_mode;
bool hdmi_repeat;
bool venc_repeat;
bool hdmi_use_enci;
} venc;
};

Expand Down
Loading

0 comments on commit 3f68be7

Please sign in to comment.