Lines Matching +full:dvi +full:- +full:connector

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
4 * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
7 #include <linux/via-core.h>
41 switch (viaparinfo->chip_info->gfx_chip_name) { in viafb_tmds_trasmitter_identify()
63 /* SR3E[1]Multi-function selection: in viafb_tmds_trasmitter_identify()
71 viaparinfo->chip_info->tmds_chip_info.tmds_chip_name = VT1632_TMDS; in viafb_tmds_trasmitter_identify()
72 viaparinfo->chip_info-> in viafb_tmds_trasmitter_identify()
74 viaparinfo->chip_info->tmds_chip_info.i2c_port = VIA_PORT_31; in viafb_tmds_trasmitter_identify()
83 viaparinfo->chip_info->tmds_chip_info.tmds_chip_name); in viafb_tmds_trasmitter_identify()
85 viaparinfo->chip_info->tmds_chip_info.i2c_port); in viafb_tmds_trasmitter_identify()
88 viaparinfo->chip_info->tmds_chip_info.i2c_port = VIA_PORT_2C; in viafb_tmds_trasmitter_identify()
93 viaparinfo->chip_info-> in viafb_tmds_trasmitter_identify()
96 viaparinfo->chip_info-> in viafb_tmds_trasmitter_identify()
102 viaparinfo->chip_info->tmds_chip_info.tmds_chip_name = INTEGRATED_TMDS; in viafb_tmds_trasmitter_identify()
104 if ((viaparinfo->chip_info->gfx_chip_name == UNICHROME_CX700) && in viafb_tmds_trasmitter_identify()
111 switch (viaparinfo->chip_info->gfx_chip_name) { in viafb_tmds_trasmitter_identify()
128 viaparinfo->chip_info-> in viafb_tmds_trasmitter_identify()
130 viaparinfo->chip_info->tmds_chip_info. in viafb_tmds_trasmitter_identify()
137 viafb_i2c_writebyte(viaparinfo->chip_info->tmds_chip_info.i2c_port, in tmds_register_write()
138 viaparinfo->chip_info->tmds_chip_info.tmds_chip_target_addr, in tmds_register_write()
146 viafb_i2c_readbyte(viaparinfo->chip_info->tmds_chip_info.i2c_port, in tmds_register_read()
147 (u8) viaparinfo->chip_info->tmds_chip_info.tmds_chip_target_addr, in tmds_register_read()
154 viafb_i2c_readbytes(viaparinfo->chip_info->tmds_chip_info.i2c_port, in tmds_register_read_bytes()
155 (u8) viaparinfo->chip_info->tmds_chip_info.tmds_chip_target_addr, in tmds_register_read_bytes()
160 /* DVI Set Mode */
168 maxPixelClock = viaparinfo->shared->tmds_setting_info.max_pixel_clock; in viafb_dvi_set_mode()
169 if (maxPixelClock && PICOS2KHZ(var->pixclock) / 1000 > maxPixelClock) { in viafb_dvi_set_mode()
170 rb_mode = viafb_get_best_rb_mode(var->xres, var->yres, 60); in viafb_dvi_set_mode()
178 /* Sense DVI Connector */
187 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) { in viafb_dvi_sense()
212 /* SR3E[1]Multi-function selection: in viafb_dvi_sense()
240 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) { in viafb_dvi_sense()
251 /* Query Flat Panel's EDID Table Version Through DVI Connector */
259 restore = viaparinfo->chip_info->tmds_chip_info.tmds_chip_target_addr; in viafb_dvi_query_EDID()
260 viaparinfo->chip_info->tmds_chip_info.tmds_chip_target_addr = 0xA0; in viafb_dvi_query_EDID()
265 viaparinfo->chip_info-> in viafb_dvi_query_EDID()
283 restore = tmds_chip->tmds_chip_target_addr; in dvi_get_panel_size_from_DDCv1()
284 tmds_chip->tmds_chip_target_addr = 0xA0; in dvi_get_panel_size_from_DDCv1()
296 tmds_setting->max_pixel_clock = in dvi_get_panel_size_from_DDCv1()
307 DEBUG_MSG(KERN_INFO "DVI max pixelclock = %d\n", in dvi_get_panel_size_from_DDCv1()
308 tmds_setting->max_pixel_clock); in dvi_get_panel_size_from_DDCv1()
309 tmds_chip->tmds_chip_target_addr = restore; in dvi_get_panel_size_from_DDCv1()
312 /* If Disable DVI, turn off pad */
315 if (viaparinfo->chip_info-> in viafb_dvi_disable()
328 switch (viaparinfo->chip_info->gfx_chip_name) { in dvi_patch_skew_dvp0()
331 if ((viaparinfo->tmds_setting_info->h_active == 1600) && in dvi_patch_skew_dvp0()
332 (viaparinfo->tmds_setting_info->v_active == in dvi_patch_skew_dvp0()
360 switch (viaparinfo->chip_info->gfx_chip_name) { in dvi_patch_skew_dvp_low()
388 /* If Enable DVI, turn off pad */
393 switch (viaparinfo->chip_info->tmds_chip_info.output_interface) { in viafb_dvi_enable()
398 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in viafb_dvi_enable()
407 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in viafb_dvi_enable()
410 /*fix dvi cann't be enabled with MB VT5718C4 - Al Zhang */ in viafb_dvi_enable()
411 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in viafb_dvi_enable()
418 /*fix DVI cannot enable on EPIA-M board */ in viafb_dvi_enable()
427 viafb_i2c_writebyte(viaparinfo->chip_info-> in viafb_dvi_enable()
429 viaparinfo->chip_info-> in viafb_dvi_enable()
437 if (viaparinfo->chip_info->gfx_chip_name != UNICHROME_CLE266) in viafb_dvi_enable()
444 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in viafb_dvi_enable()
460 if (viaparinfo->tmds_setting_info->iga_path == IGA2) { in viafb_dvi_enable()