mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 10:31:48 +00:00
drm/radeon/atom: add support for new DVO tables
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e68adef824
commit
aea6564133
@ -487,11 +487,11 @@ static u8 radeon_atom_get_bpc(struct drm_encoder *encoder)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
union dvo_encoder_control {
|
union dvo_encoder_control {
|
||||||
ENABLE_EXTERNAL_TMDS_ENCODER_PS_ALLOCATION ext_tmds;
|
ENABLE_EXTERNAL_TMDS_ENCODER_PS_ALLOCATION ext_tmds;
|
||||||
DVO_ENCODER_CONTROL_PS_ALLOCATION dvo;
|
DVO_ENCODER_CONTROL_PS_ALLOCATION dvo;
|
||||||
DVO_ENCODER_CONTROL_PS_ALLOCATION_V3 dvo_v3;
|
DVO_ENCODER_CONTROL_PS_ALLOCATION_V3 dvo_v3;
|
||||||
|
DVO_ENCODER_CONTROL_PS_ALLOCATION_V1_4 dvo_v4;
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -541,6 +541,13 @@ atombios_dvo_setup(struct drm_encoder *encoder, int action)
|
|||||||
args.dvo_v3.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10);
|
args.dvo_v3.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10);
|
||||||
args.dvo_v3.ucDVOConfig = 0; /* XXX */
|
args.dvo_v3.ucDVOConfig = 0; /* XXX */
|
||||||
break;
|
break;
|
||||||
|
case 4:
|
||||||
|
/* DCE8 */
|
||||||
|
args.dvo_v4.ucAction = action;
|
||||||
|
args.dvo_v4.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10);
|
||||||
|
args.dvo_v4.ucDVOConfig = 0; /* XXX */
|
||||||
|
args.dvo_v4.ucBitPerColor = radeon_atom_get_bpc(encoder);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
DRM_ERROR("Unknown table version %d, %d\n", frev, crev);
|
DRM_ERROR("Unknown table version %d, %d\n", frev, crev);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user