Skip to content

Commit be5a7aa

Browse files
committed
Add 1080p120 mode
1 parent 36cbaaf commit be5a7aa

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

drivers/gpu/drm/amd/amdgpu/ps4_bridge.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,13 @@ static const struct drm_display_mode mode_1080p = {
675675
DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC),
676676
.picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9
677677
};
678+
/* 63 - 1920x1080@120Hz */
679+
static const struct drm_display_mode mode_1080p120 = {
680+
DRM_MODE("1920x1080", DRM_MODE_TYPE_DRIVER, 297000, 1920, 2008,
681+
2052, 2200, 0, 1080, 1084, 1089, 1125, 0,
682+
DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC),
683+
.picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9
684+
};
678685

679686
int ps4_bridge_get_modes(struct drm_connector *connector)
680687
{
@@ -685,6 +692,9 @@ int ps4_bridge_get_modes(struct drm_connector *connector)
685692
newmode = drm_mode_duplicate(dev, &mode_1080p);
686693
drm_mode_probed_add(connector, newmode);
687694

695+
newmode = drm_mode_duplicate(dev, &mode_1080p120);
696+
drm_mode_probed_add(connector, newmode);
697+
688698
//newmode = drm_mode_duplicate(dev, &mode_720p);
689699
//drm_mode_probed_add(connector, newmode);
690700
//newmode = drm_mode_duplicate(dev, &mode_480p);
@@ -732,7 +742,7 @@ int ps4_bridge_mode_valid(struct drm_connector *connector,
732742
int vic = drm_match_cea_mode(mode);
733743

734744
/* Allow anything that we can match up to a VIC (CEA modes) */
735-
if (!vic || (vic != 16 && vic != 4)) {
745+
if (!vic || (vic != 16 && vic != 4 && vic != 63)) {
736746
return MODE_BAD;
737747
}
738748

0 commit comments

Comments
 (0)