OSDN Git Service

drm/meson: split out encoder from meson_dw_hdmi
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 20 Oct 2021 12:39:44 +0000 (14:39 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 12 Nov 2021 09:09:19 +0000 (10:09 +0100)
commite67f6037ae1be34b2b686bab72caa41d57714534
tree0ef71fa249927a597300b55f14fce612ae40c22b
parentd235a7c426b1a4867d2db8f640b46843251edd26
drm/meson: split out encoder from meson_dw_hdmi

This moves all the non-DW-HDMI code where it should be:
an encoder in the drm/meson core driver.

The bridge functions are copied as-is, except:
- the encoder init uses the simple kms helper
- the mode_set has been moved to atomic_enable()
- debug prints are converted to dev_debg()

For now the bridge attach flags is 0, DRM_BRIDGE_ATTACH_NO_CONNECTOR
will be handled later.

The meson dw-hdmi glue is slightly fixed to live without the
encoder in the same driver.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
[narmstrong: fixed warning because missing meson_encoder_hdmi.h include]
Link: https://patchwork.freedesktop.org/patch/msgid/20211020123947.2585572-4-narmstrong@baylibre.com
drivers/gpu/drm/meson/Makefile
drivers/gpu/drm/meson/meson_drv.c
drivers/gpu/drm/meson/meson_dw_hdmi.c
drivers/gpu/drm/meson/meson_encoder_hdmi.c [new file with mode: 0644]
drivers/gpu/drm/meson/meson_encoder_hdmi.h [new file with mode: 0644]