> Add a MISC uclass driver for the DVO, the display controller's output > stage on MT8189, which replaces the DPI/DP_INTF block used by earlier > SoCs. It takes the pixel stream from the vdosys0 data path and drives > the attached transmitter with video timing. The driver exports the > configure and enable entry points the driver of that transmitter needs. > The block moves four pixels per iteration, so both the horizontal > timings and the pixel clock are divided by that before they are > programmed. > > The register programming and the display buffer watermark calculation > are based on the DVO support in the in-flight Linux series "drm/mediatek: > Add support for MediaTek Digital Video Output (DVO)". Linux programs a > fixed per-mode table and then overwrites it with the calculation, so > only the calculation is kept here. Its fill rate is taken from the > engine clock, which paces the data path writing into the buffer, where > Linux uses the pixel clock. Only the SODI pair is programmed; the other > watermarks are left at their reset values. > > The driver has no Kconfig prompt of its own: it is useless without a > transmitter behind it, so the driver of that transmitter selects it. > > It is the device that holds the display power domain for the whole > vdosys0 front end, so it is marked DM_FLAG_OS_PREPARE to have DM power > that domain off before the OS starts, as the DSI driver does for the > DSI path. > > Signed-off-by: David Lechner <[email protected]> > > diff --git a/drivers/video/mediatek/Kconfig b/drivers/video/mediatek/Kconfig > index 346d02e9c02..88cf3d11b2e 100644 > --- a/drivers/video/mediatek/Kconfig > +++ b/drivers/video/mediatek/Kconfig > @@ -34,6 +34,12 @@ config VIDEO_MEDIATEK_DSI > pipeline (overlay, RDMA and, on the SoCs having one, the colour > pipeline) to scan out the U-Boot framebuffer to a DSI panel. > > +# DVO output stage, the eDP path's replacement for the DPI/DP_INTF block > +config VIDEO_MEDIATEK_DVO > + bool > + select MISC > + select VIDEO_MEDIATEK_DISP_COMP > + > config VIDEO_MEDIATEK_HDMI > bool "Video HDMI Support for MediaTek SoCs" > depends on VIDEO && ARCH_MEDIATEK > diff --git a/drivers/video/mediatek/Makefile b/drivers/video/mediatek/Makefile > index 9de9a9c78f1..ee3d7eed618 100644 > --- a/drivers/video/mediatek/Makefile > +++ b/drivers/video/mediatek/Makefile > @@ -12,6 +12,8 @@ obj-$(CONFIG_VIDEO_MEDIATEK_DISP_PIPELINE) += mtk_ddp.o \ > > obj-$(CONFIG_VIDEO_MEDIATEK_DPI) += mtk_dpi.o > > +obj-$(CONFIG_VIDEO_MEDIATEK_DVO) += mtk_dvo.o > +
keep it sorted -- Julien Stephan <[email protected]>
