Lines Matching +full:vga +full:- +full:connector

1 // SPDX-License-Identifier: MIT
21 * Connector
24 static int ast_vga_connector_helper_get_modes(struct drm_connector *connector) in ast_vga_connector_helper_get_modes() argument
26 struct ast_connector *ast_connector = to_ast_connector(connector); in ast_vga_connector_helper_get_modes()
29 if (ast_connector->physical_status == connector_status_connected) { in ast_vga_connector_helper_get_modes()
30 count = drm_connector_helper_get_modes(connector); in ast_vga_connector_helper_get_modes()
32 drm_edid_connector_update(connector, NULL); in ast_vga_connector_helper_get_modes()
35 * There's no EDID data without a connected monitor. Set BMC- in ast_vga_connector_helper_get_modes()
39 count = drm_add_modes_noedid(connector, 4096, 4096); in ast_vga_connector_helper_get_modes()
41 drm_set_preferred_mode(connector, 1024, 768); in ast_vga_connector_helper_get_modes()
47 static int ast_vga_connector_helper_detect_ctx(struct drm_connector *connector, in ast_vga_connector_helper_detect_ctx() argument
51 struct ast_connector *ast_connector = to_ast_connector(connector); in ast_vga_connector_helper_detect_ctx()
54 status = drm_connector_helper_detect_from_ddc(connector, ctx, force); in ast_vga_connector_helper_detect_ctx()
56 if (status != ast_connector->physical_status) in ast_vga_connector_helper_detect_ctx()
57 ++connector->epoch_counter; in ast_vga_connector_helper_detect_ctx()
58 ast_connector->physical_status = status; in ast_vga_connector_helper_detect_ctx()
82 struct drm_device *dev = &ast->base; in ast_vga_output_init()
83 struct drm_crtc *crtc = &ast->crtc; in ast_vga_output_init()
87 struct drm_connector *connector; in ast_vga_output_init() local
98 encoder = &ast->output.vga.encoder; in ast_vga_output_init()
103 encoder->possible_crtcs = drm_crtc_mask(crtc); in ast_vga_output_init()
105 /* connector */ in ast_vga_output_init()
107 ast_connector = &ast->output.vga.connector; in ast_vga_output_init()
108 connector = &ast_connector->base; in ast_vga_output_init()
109 ret = drm_connector_init_with_ddc(dev, connector, &ast_vga_connector_funcs, in ast_vga_output_init()
113 drm_connector_helper_add(connector, &ast_vga_connector_helper_funcs); in ast_vga_output_init()
115 connector->interlace_allowed = 0; in ast_vga_output_init()
116 connector->doublescan_allowed = 0; in ast_vga_output_init()
117 connector->polled = DRM_CONNECTOR_POLL_CONNECT | DRM_CONNECTOR_POLL_DISCONNECT; in ast_vga_output_init()
119 ast_connector->physical_status = connector->status; in ast_vga_output_init()
121 ret = drm_connector_attach_encoder(connector, encoder); in ast_vga_output_init()