|
@@ -135,7 +135,7 @@ static void dce110_update_generic_info_packet(
|
|
|
AFMT_GENERIC0_UPDATE, (packet_index == 0),
|
|
|
AFMT_GENERIC2_UPDATE, (packet_index == 2));
|
|
|
}
|
|
|
-#ifdef CONFIG_X86
|
|
|
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
|
|
|
if (REG(AFMT_VBI_PACKET_CONTROL1)) {
|
|
|
switch (packet_index) {
|
|
|
case 0:
|
|
@@ -229,7 +229,7 @@ static void dce110_update_hdmi_info_packet(
|
|
|
HDMI_GENERIC1_SEND, send,
|
|
|
HDMI_GENERIC1_LINE, line);
|
|
|
break;
|
|
|
-#ifdef CONFIG_X86
|
|
|
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
|
|
|
case 4:
|
|
|
if (REG(HDMI_GENERIC_PACKET_CONTROL2))
|
|
|
REG_UPDATE_3(HDMI_GENERIC_PACKET_CONTROL2,
|
|
@@ -274,7 +274,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(
|
|
|
struct dc_crtc_timing *crtc_timing,
|
|
|
enum dc_color_space output_color_space)
|
|
|
{
|
|
|
-#ifdef CONFIG_X86
|
|
|
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
|
|
|
uint32_t h_active_start;
|
|
|
uint32_t v_active_start;
|
|
|
uint32_t misc0 = 0;
|
|
@@ -317,7 +317,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(
|
|
|
if (enc110->se_mask->DP_VID_M_DOUBLE_VALUE_EN)
|
|
|
REG_UPDATE(DP_VID_TIMING, DP_VID_M_DOUBLE_VALUE_EN, 1);
|
|
|
|
|
|
-#ifdef CONFIG_X86
|
|
|
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
|
|
|
if (enc110->se_mask->DP_VID_N_MUL)
|
|
|
REG_UPDATE(DP_VID_TIMING, DP_VID_N_MUL, 1);
|
|
|
#endif
|
|
@@ -328,7 +328,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_X86
|
|
|
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
|
|
|
if (REG(DP_MSA_MISC))
|
|
|
misc1 = REG_READ(DP_MSA_MISC);
|
|
|
#endif
|
|
@@ -362,7 +362,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(
|
|
|
/* set dynamic range and YCbCr range */
|
|
|
|
|
|
|
|
|
-#ifdef CONFIG_X86
|
|
|
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
|
|
|
switch (crtc_timing->display_color_depth) {
|
|
|
case COLOR_DEPTH_666:
|
|
|
colorimetry_bpc = 0;
|
|
@@ -441,7 +441,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(
|
|
|
DP_DYN_RANGE, dynamic_range_rgb,
|
|
|
DP_YCBCR_RANGE, dynamic_range_ycbcr);
|
|
|
|
|
|
-#ifdef CONFIG_X86
|
|
|
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
|
|
|
if (REG(DP_MSA_COLORIMETRY))
|
|
|
REG_SET(DP_MSA_COLORIMETRY, 0, DP_MSA_MISC0, misc0);
|
|
|
|
|
@@ -476,7 +476,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(
|
|
|
crtc_timing->v_front_porch;
|
|
|
|
|
|
|
|
|
-#ifdef CONFIG_X86
|
|
|
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
|
|
|
/* start at begining of left border */
|
|
|
if (REG(DP_MSA_TIMING_PARAM2))
|
|
|
REG_SET_2(DP_MSA_TIMING_PARAM2, 0,
|
|
@@ -751,7 +751,7 @@ static void dce110_stream_encoder_update_hdmi_info_packets(
|
|
|
dce110_update_hdmi_info_packet(enc110, 3, &info_frame->hdrsmd);
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_X86
|
|
|
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
|
|
|
if (enc110->se_mask->HDMI_DB_DISABLE) {
|
|
|
/* for bring up, disable dp double TODO */
|
|
|
if (REG(HDMI_DB_CONTROL))
|
|
@@ -789,7 +789,7 @@ static void dce110_stream_encoder_stop_hdmi_info_packets(
|
|
|
HDMI_GENERIC1_LINE, 0,
|
|
|
HDMI_GENERIC1_SEND, 0);
|
|
|
|
|
|
-#ifdef CONFIG_X86
|
|
|
+#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
|
|
|
/* stop generic packets 2 & 3 on HDMI */
|
|
|
if (REG(HDMI_GENERIC_PACKET_CONTROL2))
|
|
|
REG_SET_6(HDMI_GENERIC_PACKET_CONTROL2, 0,
|