aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0634-drm-amd-display-fix-dcn10_resource-read_dce_straps.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0634-drm-amd-display-fix-dcn10_resource-read_dce_straps.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0634-drm-amd-display-fix-dcn10_resource-read_dce_straps.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0634-drm-amd-display-fix-dcn10_resource-read_dce_straps.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0634-drm-amd-display-fix-dcn10_resource-read_dce_straps.patch
new file mode 100644
index 00000000..5d285119
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0634-drm-amd-display-fix-dcn10_resource-read_dce_straps.patch
@@ -0,0 +1,35 @@
+From 5e350973c35813e26f52649a0247d61ce1b96348 Mon Sep 17 00:00:00 2001
+From: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Date: Wed, 19 Jul 2017 14:32:21 -0400
+Subject: [PATCH 0634/4131] drm/amd/display: fix dcn10_resource read_dce_straps
+
+Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 8 ++------
+ 1 file changed, 2 insertions(+), 6 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
+index 4a996f9..b5f0f54 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
+@@ -610,12 +610,8 @@ static void read_dce_straps(
+ struct dc_context *ctx,
+ struct resource_straps *straps)
+ {
+- /* TODO: Registers are missing */
+- /*REG_GET_2(CC_DC_HDMI_STRAPS,
+- HDMI_DISABLE, &straps->hdmi_disable,
+- AUDIO_STREAM_NUMBER, &straps->audio_stream_number);
+-
+- REG_GET(DC_PINSTRAPS, DC_PINSTRAPS_AUDIO, &straps->dc_pinstraps_audio);*/
++ generic_reg_get(ctx, mmDC_PINSTRAPS + BASE(mmDC_PINSTRAPS_BASE_IDX),
++ FN(DC_PINSTRAPS, DC_PINSTRAPS_AUDIO), &straps->dc_pinstraps_audio);
+ }
+
+ static struct audio *create_audio(
+--
+2.7.4
+