Skip to content

Commit b2e54fc

Browse files
committed
Add support for ps4 encoder to radeon driver
Not terribly happy with how this is hooked up, but it could be way worse.
1 parent 197e20e commit b2e54fc

File tree

5 files changed

+653
-5
lines changed

5 files changed

+653
-5
lines changed

drivers/gpu/drm/radeon/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ radeon-y += radeon_device.o radeon_asic.o radeon_kms.o \
8181

8282
radeon-$(CONFIG_MMU_NOTIFIER) += radeon_mn.o
8383

84+
radeon-$(CONFIG_X86_PS4) += ps4_bridge.o
85+
8486
# add async DMA block
8587
radeon-y += \
8688
r600_dma.o \

drivers/gpu/drm/radeon/atombios_encoders.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,8 @@ atombios_get_encoder_mode(struct drm_encoder *encoder)
687687
if (radeon_encoder->is_mst_encoder || radeon_encoder->offset)
688688
return ATOM_ENCODER_MODE_DP_MST;
689689
/* dp bridges are always DP */
690-
if (radeon_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE)
690+
if (radeon_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE ||
691+
rdev->family == CHIP_LIVERPOOL)
691692
return ATOM_ENCODER_MODE_DP;
692693

693694
/* DVO is always DVO */

0 commit comments

Comments
 (0)