[PATCH v2 0/9] drm/ast: Untangle connector helpers
Thomas Zimmermann
tzimmermann at suse.de
Mon Feb 7 14:15:35 UTC 2022
The ast driver supports different transmitter chips to support DVI
and HDMI connectors. It's al been packed into the same helpers
functons and exported as VGA connector.
Introduce a separate set of connector helpers for each transmitter
chip, and thus connector type. Also provide the correct encoder for
each connector.
This change mostly affects the connector's get_modes helper, where
VGA-, DVI- and HDMI-related code was lumped into the same function.
It's now all separate. While at it, also rework and cleanup the
initialization of the related data structures.
Tested on AST 2100 and AST 2300 hardware. I don't have hardware with
special transmitter chips (SIL164, DP501), so I could only test the VGA
code.
v2:
* move encoder's preferred-CRTC bitmask setup into separate patch
(Javier)
Thomas Zimmermann (9):
drm/ast: Fail if connector initialization fails
drm/ast: Move connector mode_valid function to CRTC
drm/ast: Remove AST_TX_ITE66121 constant
drm/ast: Remove unused value dp501_maxclk
drm/ast: Rename struct ast_connector to struct ast_vga_connector
drm/ast: Initialize encoder and connector for VGA in helper function
drm/ast: Read encoder possible-CRTC mask from drm_crtc_mask()
drm/ast: Move DP501-based connector code into separate helpers
drm/ast: Move SIL164-based connector code into separate helpers
drivers/gpu/drm/ast/ast_dp501.c | 58 -----
drivers/gpu/drm/ast/ast_drv.h | 37 ++-
drivers/gpu/drm/ast/ast_mode.c | 413 +++++++++++++++++++++++---------
3 files changed, 331 insertions(+), 177 deletions(-)
base-commit: 0bb81b5d6db5f689b67f9d8b35323235c45e890f
--
2.34.1
More information about the dri-devel
mailing list