aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0825-drm-amd-amdgpu-Route-dal-i2c-through-drm-s-i2cadapte.patch
blob: 90552fca304d9c074397f8d59715f6d0dc78b039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From 3273b17218edaeb42526187dd77fe0f87992e063 Mon Sep 17 00:00:00 2001
From: Harry Wentland <harry.wentland@amd.com>
Date: Thu, 18 Feb 2016 15:46:44 -0500
Subject: [PATCH 0825/1110] drm/amd/amdgpu: Route dal i2c through drm's
 i2cadapter

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Jordan Lazare <Jordan.Lazare@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
index 61c2345..076d2c0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
@@ -521,6 +521,12 @@ struct amdgpu_dm_dp_aux {
 	uint32_t link_index;
 };
 
+struct amdgpu_i2c_adapter {
+	struct i2c_adapter base;
+	struct amdgpu_display_manager *dm;
+	uint32_t link_index;
+};
+
 #define TO_DM_AUX(x) container_of((x), struct amdgpu_dm_dp_aux, aux)
 
 struct amdgpu_connector {
@@ -559,6 +565,9 @@ struct amdgpu_connector {
 	bool is_mst_connector;
 	struct amdgpu_encoder *mst_encoder;
 	struct semaphore mst_sem;
+
+	/* TODO see if we can merge with ddc_bus or make a dm_connector */
+	struct amdgpu_i2c_adapter *i2c;
 };
 
 /* TODO: start to use this struct and remove same field from base one */
-- 
2.7.4